diff options
author | Tim Hatch <tim@timhatch.com> | 2014-10-04 11:06:28 -0700 |
---|---|---|
committer | Tim Hatch <tim@timhatch.com> | 2014-10-04 11:06:28 -0700 |
commit | 900ce2be770ce98e7a93d5e687ae6a0184b2015c (patch) | |
tree | 79326f0131a31ddb903294f2e21973a7de1c6a6a /pygments/lexers/nit.py | |
parent | 9bfaf9454e6301a6b5da0c30f4ca029c1f227a97 (diff) | |
download | pygments-900ce2be770ce98e7a93d5e687ae6a0184b2015c.tar.gz |
Fix minor problems noted by regexlint and 'make check'
Diffstat (limited to 'pygments/lexers/nit.py')
-rw-r--r-- | pygments/lexers/nit.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pygments/lexers/nit.py b/pygments/lexers/nit.py index ba267086..84690cf2 100644 --- a/pygments/lexers/nit.py +++ b/pygments/lexers/nit.py @@ -37,7 +37,7 @@ class NitLexer(RegexLexer): 'else', 'while', 'loop', 'for', 'in', 'and', 'or', 'not', 'implies', 'return', 'continue', 'break', 'abort', 'assert', 'new', 'is', 'once', 'super', 'self', 'true', 'false', 'nullable', - 'null', 'as', 'isset', 'label', '__debug__'), suffix='(?=( |\n|\t|\r|\())'), + 'null', 'as', 'isset', 'label', '__debug__'), suffix=r'(?=[\r\n\t\( ])'), Keyword), (r'[A-Z][A-Za-z0-9_]*', Name.Class), (r'"""(([^\'\\]|\\.)|\\r|\\n)*(({{?)?(""?{{?)*""""*)', String), # Simple long string @@ -59,6 +59,6 @@ class NitLexer(RegexLexer): (r'==|!=|<==>|>=|>>|>|<=|<<|<|\+|-|=|/|\*|%|\+=|-=|!|@', Operator), (r'\(|\)|\[|\]|,|\.\.\.|\.\.|\.|::|:', Punctuation), (r'`{[^`]*`}', Text), # Extern blocks won't be Lexed by Nit - ('(\r|\n| |\t)+', Text), + (r'[\r\n\t ]+', Text), ], } |