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

Incorrect Syntax Highlighting for Snake Case Function Name in vscode #228

Open
copperlight opened this issue Jan 8, 2021 · 3 comments
Open

Comments

@copperlight
Copy link

copperlight commented Jan 8, 2021

The HLB specification notes that a FunctionName is an identifier:

https://openllb.github.io/hlb/specification/#function-declarations

An EBNF identifier is defined as:

https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form

identifier = letter , { letter | digit | "_" } 

Based on these definitions, it seems that snake case function names such as spectatord_runtime should be valid.

Note the red closing parentheses.

image

Note the white color instead of light blue.

image

@hinshun
Copy link
Contributor

hinshun commented Jan 8, 2021

@copperlight Are you using the vscode extension? This is not LSP right?

@copperlight
Copy link
Author

Correct - hlb 0.0.7.

@hinshun
Copy link
Contributor

hinshun commented Jan 19, 2021

Related: #229
Need to make sure the plugin has the update too.

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

No branches or pull requests

2 participants