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:
krizej 2024-09-14 22:06:03 +02:00 committed by GitHub
parent 00c0a7254a
commit 40a00fb224
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -9,6 +9,7 @@
"enum"
"extern"
"for"
"goto"
"if"
"inline"
"return"
@ -35,27 +36,48 @@
] @keyword
[
"--"
"-"
"-="
"->"
"="
"!="
"*"
"&"
"&&"
"+"
"++"
"+="
"<"
"=="
">"
"-="
"*="
"/="
"%="
"&="
"|="
"^="
"<<="
">>="
"++"
"--"
"+"
"-"
"*"
"/"
"%"
"~"
"&"
"|"
"^"
"<<"
">>"
"!"
"&&"
"||"
"=="
"!="
"<"
">"
"<="
">="
"->"
"?"
":"
] @operator
[
"."
";"
","
] @punctuation.delimiter
[