on master help sign in
C# syntax highlight tweaks (#4285)
commit1c08c80e4ff9af2c3dffc2f4d98d4b003cb5ed19 authorChickenkeeper <chrism.chickenkeeper24@gmail.com> dateSat 15 Oct 2022, 17:29 (4 years ago) parentf444ba8
1 file changed+33−31
runtime/queries/c-sharp/highlights.scm+33−31
runtime/queries/c-sharp/highlights.scm+33−31
@@ -109,6 +109,9 @@
109109(comment) @comment
110110
111111;; Tokens
112+(type_argument_list ["<" ">"] @punctuation.bracket)
113+(type_parameter_list ["<" ">"] @punctuation.bracket)
114+
112115[
113116 ";"
114117 "."
@@ -159,14 +162,7 @@
159162 "??="
160163] @operator
161164
162−[
163− "("
164− ")"
165− "["
166− "]"
167− "{"
168− "}"
169−] @punctuation.bracket
165+["(" ")" "[" "]" "{" "}"] @punctuation.bracket
170166
171167;; Keywords
172168(modifier) @keyword.storage.modifier
@@ -175,36 +171,32 @@
175171
176172[
177173 "as"
174+ "await"
178175 "base"
179− "catch"
180176 "checked"
181− "finally"
177+ "from"
178+ "get"
179+ "in"
180+ "init"
182181 "is"
182+ "let"
183183 "lock"
184+ "new"
184185 "operator"
186+ "out"
185187 "params"
188+ "ref"
189+ "select"
190+ "set"
186191 "sizeof"
187192 "stackalloc"
188− "throw"
189− "try"
190193 "typeof"
191194 "unchecked"
192195 "using"
193− "new"
194− "await"
195− "in"
196− "yield"
197− "get"
198− "set"
199196 "when"
200− "out"
201− "ref"
202− "from"
203197 "where"
204− "select"
205− "init"
206198 "with"
207− "let"
199+ "yield"
208200] @keyword
209201
210202[
@@ -225,21 +217,31 @@
225217] @keyword.storage.modifier
226218
227219[
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"
228234 "for"
229235 "foreach"
230− "do"
231236 "while"
232− "break"
233− "continue"
234237] @keyword.control.repeat
235238
236239[
237− "goto"
238− "if"
239− "else"
240− "switch"
241240 "case"
242241 "default"
242+ "else"
243+ "if"
244+ "switch"
243245] @keyword.control.conditional
244246
245247"return" @keyword.control.return