on master help sign in
C# syntax highlight tweaks (#4285)
1c08c80Chickenkeeper
runtime/queries/c-sharp/highlights.scm+33−31
@@ -109,6 +109,9 @@
109(comment) @comment
109(comment) @comment
110
110
111;; Tokens
111;; Tokens
112+(type_argument_list ["<" ">"] @punctuation.bracket)
113+(type_parameter_list ["<" ">"] @punctuation.bracket)
114+
112[
115[
113 ";"
116 ";"
114 "."
117 "."
@@ -159,14 +162,7 @@
159 "??="
162 "??="
160] @operator
163] @operator
161
164
162−[
163− "("
164− ")"
165− "["
166− "]"
167− "{"
168− "}"
169−] @punctuation.bracket
165+["(" ")" "[" "]" "{" "}"] @punctuation.bracket
170
166
171;; Keywords
167;; Keywords
172(modifier) @keyword.storage.modifier
168(modifier) @keyword.storage.modifier
@@ -175,36 +171,32 @@
175
171
176[
172[
177 "as"
173 "as"
174+ "await"
178 "base"
175 "base"
179− "catch"
180 "checked"
176 "checked"
181− "finally"
177+ "from"
178+ "get"
179+ "in"
180+ "init"
182 "is"
181 "is"
182+ "let"
183 "lock"
183 "lock"
184+ "new"
184 "operator"
185 "operator"
186+ "out"
185 "params"
187 "params"
188+ "ref"
189+ "select"
190+ "set"
186 "sizeof"
191 "sizeof"
187 "stackalloc"
192 "stackalloc"
188− "throw"
189− "try"
190 "typeof"
193 "typeof"
191 "unchecked"
194 "unchecked"
192 "using"
195 "using"
193− "new"
194− "await"
195− "in"
196− "yield"
197− "get"
198− "set"
199 "when"
196 "when"
200− "out"
201− "ref"
202− "from"
203 "where"
197 "where"
204− "select"
205− "init"
206 "with"
198 "with"
207− "let"
199+ "yield"
208] @keyword
200] @keyword
209
201
210[
202[
@@ -225,21 +217,31 @@
225] @keyword.storage.modifier
217] @keyword.storage.modifier
226
218
227[
219[
220+ "break"
221+ "continue"
222+ "goto"
223+] @keyword.control
224+
225+[
226+ "catch"
227+ "finally"
228+ "throw"
229+ "try"
230+] @keyword.control.exception
231+
232+[
233+ "do"
228 "for"
234 "for"
229 "foreach"
235 "foreach"
230− "do"
231 "while"
236 "while"
232− "break"
233− "continue"
234] @keyword.control.repeat
237] @keyword.control.repeat
235
238
236[
239[
237− "goto"
238− "if"
239− "else"
240− "switch"
241 "case"
240 "case"
242 "default"
241 "default"
242+ "else"
243+ "if"
244+ "switch"
243] @keyword.control.conditional
245] @keyword.control.conditional
244
246
245"return" @keyword.control.return
247"return" @keyword.control.return