diff options
author | Tim Hatch <tim@timhatch.com> | 2015-10-11 10:38:57 -0700 |
---|---|---|
committer | Tim Hatch <tim@timhatch.com> | 2015-10-11 10:38:57 -0700 |
commit | 76f7cd4ebf1bcf27e854f970010f3a10a218186e (patch) | |
tree | dff0f75abecc44327531e1074a8307e9306ebcb5 | |
parent | e95862292e495e46054df54fa5d9f129d295f958 (diff) | |
download | pygments-76f7cd4ebf1bcf27e854f970010f3a10a218186e.tar.gz |
Update JclLexer to remove explicit jump-to-root.
See my comments on pull request #208 for how this should do the right thing
when not matching \n.
-rw-r--r-- | pygments/lexers/scripting.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pygments/lexers/scripting.py b/pygments/lexers/scripting.py index c8eb056d..8f9a4a3e 100644 --- a/pygments/lexers/scripting.py +++ b/pygments/lexers/scripting.py @@ -1155,7 +1155,7 @@ class JclLexer(RegexLexer): r'setup|signoff|xeq|xmit)\b', Keyword, 'option'), ], 'option': [ - (r'\n', Text, 'root'), + #(r'\n', Text, 'root'), (r'\*', Name.Builtin), (r'[\[\](){}<>;,]', Punctuation), (r'[-+*/=&%]', Operator), @@ -1164,7 +1164,7 @@ class JclLexer(RegexLexer): (r'\.[0-9]+', Number.Float), (r'[0-9]+', Number.Integer), (r"'", String, 'option_string'), - (r'\s+', Whitespace, 'option_comment'), + (r'[ \t]+', Whitespace, 'option_comment'), (r'\.', Punctuation), ], 'option_string': [ @@ -1174,7 +1174,7 @@ class JclLexer(RegexLexer): (r"'", String, '#pop'), ], 'option_comment': [ - (r'\n', Text, 'root'), + #(r'\n', Text, 'root'), (r'.+', Comment.Single), ] } |