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:
@@ -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]*>$" ]
|
||||
}
|
||||
]
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user