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"
|
||||
}, {
|
||||
token : "meta.tag", // opening tag
|
||||
regex : "<\\/?",
|
||||
regex : "<\\/?(?:[a-z])",
|
||||
next : "tag"
|
||||
}, {
|
||||
token : "comment",
|
||||
|
|
@ -182,7 +182,7 @@ var VelocityHighlightRules = function() {
|
|||
regex : "[a-zA-Z_$][a-zA-Z0-9_$]*\\b"
|
||||
}, {
|
||||
token : "keyword.operator",
|
||||
regex : "!|&|\\*|\\-|\\+|=|!=|<=|>=<|>|&&|\\|\\|"
|
||||
regex : "!|&|\\*|\\-|\\+|=|!=|<=|>=|<|>|&&|\\|\\|"
|
||||
}, {
|
||||
token : "lparen",
|
||||
regex : "[[({]"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue