diff options
| author | mliszcz <liszcz.michal@gmail.com> | 2022-10-11 14:31:19 +0200 |
|---|---|---|
| committer | Christian Clason <christian.clason@uni-due.de> | 2022-10-11 14:37:14 +0200 |
| commit | 276718c24549c23fd7947a515520b8ae905f3425 (patch) | |
| tree | fe0680b40e1a73e1068d1e69d7dbfac5021ffab8 /queries/cpp | |
| parent | Update lockfile.json (diff) | |
| download | nvim-treesitter-276718c24549c23fd7947a515520b8ae905f3425.tar nvim-treesitter-276718c24549c23fd7947a515520b8ae905f3425.tar.gz nvim-treesitter-276718c24549c23fd7947a515520b8ae905f3425.tar.bz2 nvim-treesitter-276718c24549c23fd7947a515520b8ae905f3425.tar.lz nvim-treesitter-276718c24549c23fd7947a515520b8ae905f3425.tar.xz nvim-treesitter-276718c24549c23fd7947a515520b8ae905f3425.tar.zst nvim-treesitter-276718c24549c23fd7947a515520b8ae905f3425.zip | |
highlights(cpp): add alternative operator names
These keywords are now supported by the parser.
See: https://github.com/tree-sitter/tree-sitter-cpp/pull/179
Diffstat (limited to 'queries/cpp')
| -rw-r--r-- | queries/cpp/highlights.scm | 25 |
1 files changed, 11 insertions, 14 deletions
diff --git a/queries/cpp/highlights.scm b/queries/cpp/highlights.scm index f68cf3a30..fb7ee2e5f 100644 --- a/queries/cpp/highlights.scm +++ b/queries/cpp/highlights.scm @@ -158,20 +158,17 @@ "new" "delete" - ;; these keywords are not supported by the parser - ;"eq" - ;"not_eq" - ; - ;"compl" - ;"and" - ;"or" - ; - ;"bitand" - ;"bitand_eq" - ;"bitor" - ;"bitor_eq" - ;"xor" - ;"xor_eq" + "xor" + "bitand" + "bitor" + "compl" + "not" + "xor_eq" + "and_eq" + "or_eq" + "not_eq" + "and" + "or" ] @keyword.operator "<=>" @operator |
