apple / pkl-vscode

Pkl language support for VS Code
https://pkl-lang.org/vscode/current/index.html
Apache License 2.0
110 stars 3 forks source link

Assignment `=` error in `index.pkl` #7

Open RedCMD opened 6 months ago

RedCMD commented 6 months ago

The assignment operator = is reported as an error invalid.illegal.pkl in the file index.pkl https://github.com/apple/pkl-vscode/blob/c7b00480b7c5d669b6dae630be3974cd72c181e5/src/pkl/index.pkl#L19-L20 image

stackoverflow commented 6 months ago

Our TextMate grammar is pretty bare bones at the moment. I'll take a second look at it soon.

RedCMD commented 6 months ago

The TextMate grammar correctly tokenizes it as keyword.operator.pkl it's the semantic highlighting from Tree-sitter that's causing the error

stackoverflow commented 6 months ago

Ah yes, I somehow missed that from your image. You can create an issue on our tree-sitter repo.