apple/pkl-vscode

Assignment `=` error in `index.pkl`

Opened this issue · 3 comments

The assignment operator = is reported as an error invalid.illegal.pkl in the file index.pkl

["out/pkl.tmLanguage.json"] = import("pkl.tmLanguage.pkl").output
["out/pkl.snippets.json"] = import("snippets.pkl").output

image

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

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

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