summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Vigouroux <39092278+vigoux@users.noreply.github.com>2020-06-30 08:54:24 +0200
committerThomas Vigouroux <39092278+vigoux@users.noreply.github.com>2020-06-30 08:54:54 +0200
commit255d1756b0e72840ccc5782ff2df2d30f17b33f5 (patch)
tree73678ced348f4a59754e04c469912689d6714857
parentd7240734011cd31cf4fbb95b996c9d407fb57d28 (diff)
highlights(c): highlight ternary as conditional
-rw-r--r--queries/c/highlights.scm3
1 files changed, 1 insertions, 2 deletions
diff --git a/queries/c/highlights.scm b/queries/c/highlights.scm
index 4bb3ff74..5a79a2b5 100644
--- a/queries/c/highlights.scm
+++ b/queries/c/highlights.scm
@@ -51,7 +51,7 @@
">=" @operator
"!" @operator
"||" @operator
-"?" @operator
+(conditional_expression [ "?" ":" ] @conditional)
"-=" @operator
"+=" @operator
@@ -113,4 +113,3 @@
(identifier)) @parameter
(ERROR) @error
-