Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Period in a variable name generates a syntax error when using it in a string template #71

Closed
harrisont opened this issue Dec 19, 2023 · 1 comment · Fixed by #72
Closed
Labels
bug Something isn't working

Comments

@harrisont
Copy link
Owner

Repro

.'a.b' = 'Foo'
Print("$a.b$")

Expected Behavior

No syntax error

Actual

Syntax error: Unexpected input.
Expecting to see the following:
 • template-variable-end: "$"

Also, the template does not syntax highlight properly.

@harrisont harrisont added the bug Something isn't working label Dec 19, 2023
@harrisont harrisont changed the title Period in a variable name generates a syntax error Period in a variable name generates a syntax error when using it in a string template Dec 19, 2023
@harrisont harrisont pinned this issue Dec 19, 2023
@harrisont
Copy link
Owner Author

WIP in branch issue-71.

harrisont added a commit that referenced this issue Dec 19, 2023
@harrisont harrisont unpinned this issue Dec 19, 2023
harrisont pushed a commit that referenced this issue Dec 22, 2023
harrisont added a commit that referenced this issue Dec 22, 2023
…en using it in a string template. (#74)

Related to the fix for #71.
#71 (already fixed) tracked the syntax error for this pattern.
This fixes the syntax highlighting for the pattern.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
1 participant