diff options
author | Chickenkeeper | 2022-10-15 16:29:50 +0000 |
---|---|---|
committer | GitHub | 2022-10-15 16:29:50 +0000 |
commit | 1c08c80e4ff9af2c3dffc2f4d98d4b003cb5ed19 (patch) | |
tree | 0bcb64ceb719092962af42c59003e7b88d4b14a9 /runtime/queries/c-sharp/highlights.scm | |
parent | f444ba8bebb7f539ae54a4ef0661cb61f096066a (diff) |
C# syntax highlight tweaks (#4285)
Diffstat (limited to 'runtime/queries/c-sharp/highlights.scm')
-rw-r--r-- | runtime/queries/c-sharp/highlights.scm | 64 |
1 files changed, 33 insertions, 31 deletions
diff --git a/runtime/queries/c-sharp/highlights.scm b/runtime/queries/c-sharp/highlights.scm index e26a0877..38394862 100644 --- a/runtime/queries/c-sharp/highlights.scm +++ b/runtime/queries/c-sharp/highlights.scm @@ -109,6 +109,9 @@ (comment) @comment ;; Tokens +(type_argument_list ["<" ">"] @punctuation.bracket) +(type_parameter_list ["<" ">"] @punctuation.bracket) + [ ";" "." @@ -159,14 +162,7 @@ "??=" ] @operator -[ - "(" - ")" - "[" - "]" - "{" - "}" -] @punctuation.bracket +["(" ")" "[" "]" "{" "}"] @punctuation.bracket ;; Keywords (modifier) @keyword.storage.modifier @@ -175,36 +171,32 @@ [ "as" + "await" "base" - "catch" "checked" - "finally" + "from" + "get" + "in" + "init" "is" + "let" "lock" + "new" "operator" + "out" "params" + "ref" + "select" + "set" "sizeof" "stackalloc" - "throw" - "try" "typeof" "unchecked" "using" - "new" - "await" - "in" - "yield" - "get" - "set" "when" - "out" - "ref" - "from" "where" - "select" - "init" "with" - "let" + "yield" ] @keyword [ @@ -225,21 +217,31 @@ ] @keyword.storage.modifier [ + "break" + "continue" + "goto" +] @keyword.control + +[ + "catch" + "finally" + "throw" + "try" +] @keyword.control.exception + +[ + "do" "for" "foreach" - "do" "while" - "break" - "continue" ] @keyword.control.repeat [ - "goto" - "if" - "else" - "switch" "case" "default" + "else" + "if" + "switch" ] @keyword.control.conditional "return" @keyword.control.return |