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:
Ryan Griffith 2013-04-29 16:53:05 -04:00
commit 14c897972c

View file

@ -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 : "[[({]"