diff options
author | Alex Gosse <gosse.alex@gmail.com> | 2013-03-08 02:55:55 -0800 |
---|---|---|
committer | Alex Gosse <gosse.alex@gmail.com> | 2013-03-08 02:55:55 -0800 |
commit | 09fde648539e051a77a793fae40469c46aa7a68d (patch) | |
tree | 58891ec05cb2a850fc92d42fde38b5f8a4aff85a /pygments/lexers/trafficscript.py | |
parent | 83a87b54d7a58b53478967ea1b439098d15fef40 (diff) | |
download | pygments-09fde648539e051a77a793fae40469c46aa7a68d.tar.gz |
Added keywords to TrafficScript to align highlighting with that of the Stingray
GUI editor and the http://splash.riverbed.com developer community site.
Diffstat (limited to 'pygments/lexers/trafficscript.py')
-rw-r--r-- | pygments/lexers/trafficscript.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pygments/lexers/trafficscript.py b/pygments/lexers/trafficscript.py index 56b9e04c..ddc4aa50 100644 --- a/pygments/lexers/trafficscript.py +++ b/pygments/lexers/trafficscript.py @@ -31,6 +31,7 @@ class RtsLexer(RegexLexer): (r'(0x[0-9a-fA-F]+|\d+)', Number), (r'\d+\.\d+', Number.Float), (r'\$[a-zA-Z](\w|_)*', Name.Variable), + (r'(if|else|for(each)?|in|while|do|break|sub|return|import)', Keyword), (r'[a-zA-Z][\w.]*', Name.Function), (r'[-+*/%=,;(){}<>^.!~|&\[\]\?\:]', Operator), (r'(>=|<=|==|!=|' |