fixed regex to match user defined function in LSL

This commit is contained in:
Builders Brewery 2013-04-15 22:51:39 +02:00 committed by nightwing
commit e0e6c38d17

View file

@ -308,7 +308,7 @@ function LSLHighlightRules() {
regex : "\\b[a-zA-Z_][a-zA-Z0-9_]*\\b"
}, {
token : "support.function.user-defined.lsl",
regex : "(?:\w+\s+)?(\w+)?\s*(?=\(.*?\))" // apparently some bad esape?
regex : /\w+\s+\w+\s*(?=\(.*?\))/
}, {
token : "keyword.operator.lsl",
regex : "\\+\\+|\\-\\-|<<|>>|&&?|\\|\\|?|\\^|~|[!%<>=*+\\-\\/]=?"