ui: fix issue where C/C++ keywods could have the syntax highlighting style of a function (issue #1197) (#1199)

by moving FUNCTION rule in cpp.rules above KEYWORD rules
This commit is contained in:
Brandon Shaw
2021-07-12 16:10:19 +02:00
committed by GitHub
parent 689877a42f
commit 55964b6f1d
@@ -17,6 +17,10 @@
},
"priority" : true
},
{
"type" : "function",
"patterns" : [ "\\b[A-Za-z0-9_]+(?=\\()" ]
},
{
"type" : "keyword",
"patterns" : [
@@ -159,12 +163,8 @@
"type" : "number",
"patterns" : [ "\\b[0-9]+\\b" ]
},
{
"type" : "function",
"patterns" : [ "\\b[A-Za-z0-9_]+(?=\\()" ]
},
{
"type" : "quotation",
"patterns" : [ " <[^<>\\s]*>$" ]
}
]
]