Add missing operators and keywords to the C syntax highlighting (#17541)
Based on https://en.cppreference.com/w/c/language/expressions#Operators Release Notes: - Added missing operators and keywords to the C syntax highlighting
This commit is contained in:
parent
00c0a7254a
commit
40a00fb224
1 changed files with 35 additions and 13 deletions
|
@ -9,6 +9,7 @@
|
||||||
"enum"
|
"enum"
|
||||||
"extern"
|
"extern"
|
||||||
"for"
|
"for"
|
||||||
|
"goto"
|
||||||
"if"
|
"if"
|
||||||
"inline"
|
"inline"
|
||||||
"return"
|
"return"
|
||||||
|
@ -35,27 +36,48 @@
|
||||||
] @keyword
|
] @keyword
|
||||||
|
|
||||||
[
|
[
|
||||||
"--"
|
|
||||||
"-"
|
|
||||||
"-="
|
|
||||||
"->"
|
|
||||||
"="
|
"="
|
||||||
"!="
|
|
||||||
"*"
|
|
||||||
"&"
|
|
||||||
"&&"
|
|
||||||
"+"
|
|
||||||
"++"
|
|
||||||
"+="
|
"+="
|
||||||
"<"
|
"-="
|
||||||
"=="
|
"*="
|
||||||
">"
|
"/="
|
||||||
|
"%="
|
||||||
|
"&="
|
||||||
|
"|="
|
||||||
|
"^="
|
||||||
|
"<<="
|
||||||
|
">>="
|
||||||
|
"++"
|
||||||
|
"--"
|
||||||
|
"+"
|
||||||
|
"-"
|
||||||
|
"*"
|
||||||
|
"/"
|
||||||
|
"%"
|
||||||
|
"~"
|
||||||
|
"&"
|
||||||
|
"|"
|
||||||
|
"^"
|
||||||
|
"<<"
|
||||||
|
">>"
|
||||||
|
"!"
|
||||||
|
"&&"
|
||||||
"||"
|
"||"
|
||||||
|
"=="
|
||||||
|
"!="
|
||||||
|
"<"
|
||||||
|
">"
|
||||||
|
"<="
|
||||||
|
">="
|
||||||
|
"->"
|
||||||
|
"?"
|
||||||
|
":"
|
||||||
] @operator
|
] @operator
|
||||||
|
|
||||||
[
|
[
|
||||||
"."
|
"."
|
||||||
";"
|
";"
|
||||||
|
","
|
||||||
] @punctuation.delimiter
|
] @punctuation.delimiter
|
||||||
|
|
||||||
[
|
[
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue