fixed regex to match user defined function in LSL
This commit is contained in:
parent
36083cbfe8
commit
e0e6c38d17
1 changed files with 1 additions and 1 deletions
|
|
@ -308,7 +308,7 @@ function LSLHighlightRules() {
|
||||||
regex : "\\b[a-zA-Z_][a-zA-Z0-9_]*\\b"
|
regex : "\\b[a-zA-Z_][a-zA-Z0-9_]*\\b"
|
||||||
}, {
|
}, {
|
||||||
token : "support.function.user-defined.lsl",
|
token : "support.function.user-defined.lsl",
|
||||||
regex : "(?:\w+\s+)?(\w+)?\s*(?=\(.*?\))" // apparently some bad esape?
|
regex : /\w+\s+\w+\s*(?=\(.*?\))/
|
||||||
}, {
|
}, {
|
||||||
token : "keyword.operator.lsl",
|
token : "keyword.operator.lsl",
|
||||||
regex : "\\+\\+|\\-\\-|<<|>>|&&?|\\|\\|?|\\^|~|[!%<>=*+\\-\\/]=?"
|
regex : "\\+\\+|\\-\\-|<<|>>|&&?|\\|\\|?|\\^|~|[!%<>=*+\\-\\/]=?"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue