diff options
| author | Stephan Seitz <stephan.seitz@fau.de> | 2022-12-02 20:22:58 +0100 |
|---|---|---|
| committer | Stephan Seitz <stephan.seitz@fau.de> | 2022-12-02 21:42:11 +0100 |
| commit | d6a2ecb8b7093d6f6673cb6748bce9214a5099d3 (patch) | |
| tree | 787aaf8f5e4b9079bacbdac6e0e8bcb935d5b199 /CONTRIBUTING.md | |
| parent | Update lockfile.json (diff) | |
| download | nvim-treesitter-d6a2ecb8b7093d6f6673cb6748bce9214a5099d3.tar nvim-treesitter-d6a2ecb8b7093d6f6673cb6748bce9214a5099d3.tar.gz nvim-treesitter-d6a2ecb8b7093d6f6673cb6748bce9214a5099d3.tar.bz2 nvim-treesitter-d6a2ecb8b7093d6f6673cb6748bce9214a5099d3.tar.lz nvim-treesitter-d6a2ecb8b7093d6f6673cb6748bce9214a5099d3.tar.xz nvim-treesitter-d6a2ecb8b7093d6f6673cb6748bce9214a5099d3.tar.zst nvim-treesitter-d6a2ecb8b7093d6f6673cb6748bce9214a5099d3.zip | |
highlights: create subscoping for ternary operator
After https://github.com/nvim-treesitter/nvim-treesitter/issues/470,
we decided to use `@conditional` for ternary operator instead of
operator despite `@conditional` is documented for keywords only.
A sub-scoping can make it easier for people to highlight this operator
group differently.
Also unify the usage of `@conditional...` across languages.
Diffstat (limited to 'CONTRIBUTING.md')
| -rw-r--r-- | CONTRIBUTING.md | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index a510f0e7f..9e104f252 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -146,6 +146,7 @@ effect on highlighting. We will work on improving highlighting in the near futur @keyword.return ; keywords like `return` and `yield` @conditional ; keywords related to conditionals (e.g. `if` / `else`) +@conditional.ternary ; Ternary operator: condition ? 1 : 2 @repeat ; keywords related to loops (e.g. `for` / `while`) @debug ; keywords related to debugging @label ; GOTO and other labels (e.g. `label:` in C) |
