diff options
| author | Stephan Seitz <stephan.seitz@fau.de> | 2020-07-04 22:00:59 +0200 |
|---|---|---|
| committer | Thomas Vigouroux <39092278+vigoux@users.noreply.github.com> | 2020-07-05 19:48:02 +0200 |
| commit | 63c1853674f8f6c81bc8883383ad550499410568 (patch) | |
| tree | 5e06ff1dfc89a06f992715d6c4247cf1be4b55cd /queries/cpp/highlights.scm | |
| parent | Update README.md (diff) | |
| download | nvim-treesitter-63c1853674f8f6c81bc8883383ad550499410568.tar nvim-treesitter-63c1853674f8f6c81bc8883383ad550499410568.tar.gz nvim-treesitter-63c1853674f8f6c81bc8883383ad550499410568.tar.bz2 nvim-treesitter-63c1853674f8f6c81bc8883383ad550499410568.tar.lz nvim-treesitter-63c1853674f8f6c81bc8883383ad550499410568.tar.xz nvim-treesitter-63c1853674f8f6c81bc8883383ad550499410568.tar.zst nvim-treesitter-63c1853674f8f6c81bc8883383ad550499410568.zip | |
C/C++ highlights: update to new syntax
This changed the highlight of "switch" to conditional and of "break" to repeat.
Diffstat (limited to 'queries/cpp/highlights.scm')
| -rw-r--r-- | queries/cpp/highlights.scm | 51 |
1 files changed, 29 insertions, 22 deletions
diff --git a/queries/cpp/highlights.scm b/queries/cpp/highlights.scm index 0d8295a1d..49382bdf7 100644 --- a/queries/cpp/highlights.scm +++ b/queries/cpp/highlights.scm @@ -60,7 +60,6 @@ (argument_list)) (#match? @constructor "^[A-Z]")) -(auto) @keyword ; Constants @@ -72,25 +71,33 @@ ; Keywords -"catch" @exception -"class" @keyword -"constexpr" @keyword -"delete" @keyword -"explicit" @keyword -"final" @exception -"friend" @keyword -"mutable" @keyword -"namespace" @keyword -"noexcept" @keyword -"new" @keyword -"override" @keyword -"private" @keyword -"protected" @keyword -"public" @keyword -"template" @keyword -"throw" @keyword -"try" @exception -"typename" @keyword -"using" @keyword -"virtual" @keyword +[ + "try" + "catch" + "noexcept" + "throw" +] @exception + + +[ + "class" + "constexpr" + "delete" + "explicit" + "final" + "friend" + "mutable" + "namespace" + "new" + "override" + "private" + "protected" + "public" + "template" + "typename" + "using" + "virtual" + (auto) +] @keyword + "::" @operator |
