Fixed regex for keyword.operator to include <. Adjusted regex for meta.tag due to issue where any < sign is treated as a meta.tag, including conditionals within Velocity.
This commit is contained in:
parent
846f712969
commit
14c897972c
1 changed files with 2 additions and 2 deletions
|
|
@ -54,7 +54,7 @@ var VelocityHighlightRules = function() {
|
||||||
next : "style"
|
next : "style"
|
||||||
}, {
|
}, {
|
||||||
token : "meta.tag", // opening tag
|
token : "meta.tag", // opening tag
|
||||||
regex : "<\\/?",
|
regex : "<\\/?(?:[a-z])",
|
||||||
next : "tag"
|
next : "tag"
|
||||||
}, {
|
}, {
|
||||||
token : "comment",
|
token : "comment",
|
||||||
|
|
@ -182,7 +182,7 @@ var VelocityHighlightRules = function() {
|
||||||
regex : "[a-zA-Z_$][a-zA-Z0-9_$]*\\b"
|
regex : "[a-zA-Z_$][a-zA-Z0-9_$]*\\b"
|
||||||
}, {
|
}, {
|
||||||
token : "keyword.operator",
|
token : "keyword.operator",
|
||||||
regex : "!|&|\\*|\\-|\\+|=|!=|<=|>=<|>|&&|\\|\\|"
|
regex : "!|&|\\*|\\-|\\+|=|!=|<=|>=|<|>|&&|\\|\\|"
|
||||||
}, {
|
}, {
|
||||||
token : "lparen",
|
token : "lparen",
|
||||||
regex : "[[({]"
|
regex : "[[({]"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue