Skip to content

Conversation

@worksofliam
Copy link
Member

Changes

This pull request updates the handling of the **FREE directive in the parser and adds a new test to ensure correct behavior. The most important changes are grouped below:

Parser logic improvements:

  • Changed the parser so that the **FREE directive is only recognized if it appears on the first line; if it appears elsewhere, it is ignored. This makes the parser more robust and aligns it with expected language rules.

Test coverage:

  • Added a new test case **free after first line (#451) in basics.test.ts to verify that **FREE is ignored when not on the first line, ensuring the parser's behavior matches the updated logic.

@worksofliam worksofliam merged commit 8940814 into main Aug 26, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

If comments or empty lines are added on top of **Free the Document symbols fetch an empty response

2 participants