mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-04 20:40:02 -04:00
C/C++ highlights: update to new syntax
This changed the highlight of "switch" to conditional and of "break" to repeat.
This commit is contained in:
parent
e4cd88baa4
commit
97b855ccec
4 changed files with 99 additions and 87 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -9,14 +9,14 @@
|
|||
|
||||
(struct_specifier
|
||||
name: (scoped_type_identifier
|
||||
name: (type_identifier) @definition.type) )
|
||||
name: (type_identifier) @definition.type))
|
||||
|
||||
(class_specifier
|
||||
name: (type_identifier) @definition.type)
|
||||
|
||||
(class_specifier
|
||||
name: (scoped_type_identifier
|
||||
name: (type_identifier) @definition.type) )
|
||||
name: (type_identifier) @definition.type))
|
||||
|
||||
;; Function defintions
|
||||
(template_function
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue