-
-
Notifications
You must be signed in to change notification settings - Fork 82
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
Syntax highlighting of and
/or
/not
/in
in Starlark
#396
Comments
According to the documentation at https://macromates.com/manual/en/language_grammars (which is referenced by the VSCode docs), |
Also VSCode has a lot of mentions of |
I see. My patch probably ended up falling back on |
I wonder if we should use |
|
Personally, I would just rename all of them, for consistency. But others might have different opinions... |
Yes @vogelsgesang, I can create a PR with this change. |
This fixes bazel-contrib#396. Changes the `.starlark` name suffix to `.python.starlark`. By using both `python` and `starlark`, vscode is able to default to Python highlighting if a color theme defines colors specifically for `python`. For example, default color themes in vscode use `keyword.operator.logical.python` to highlight `and`/`or`/`not`/`in`.
This fixes bazel-contrib#396. Changes the `.starlark` name suffix to `.python.starlark`. By using both `python` and `starlark`, vscode is able to default to Python highlighting if a color theme defines colors specifically for `python`. For example, default color themes in vscode use `keyword.operator.logical.python` to highlight `and`/`or`/`not`/`in`.
This fixes #396. Changes the `.starlark` name suffix to `.python.starlark`. By using both `python` and `starlark`, vscode is able to default to Python highlighting if a color theme defines colors specifically for `python`. For example, default color themes in vscode use `keyword.operator.logical.python` to highlight `and`/`or`/`not`/`in`.
The following rule matches those keywords but do not result in any highlighting.
https://github.com/bazelbuild/vscode-bazel/blob/e5c95e4567a80c82ada48031c9fde5561fc7c957/syntaxes/starlark.tmLanguage.json#L397
These are currently tagged as
https://github.com/bazelbuild/vscode-bazel/blob/e5c95e4567a80c82ada48031c9fde5561fc7c957/syntaxes/starlark.tmLanguage.json#L400
The text was updated successfully, but these errors were encountered: