diff options
author | Georg Brandl <georg@python.org> | 2014-03-24 07:36:43 +0100 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2014-03-24 07:36:43 +0100 |
commit | 4506c64add175aec620041c42f06505208efc02c (patch) | |
tree | 7073987e3e10a6f1e908916f32a1a353c9a8156b /pygments/lexers/functional.py | |
parent | 88a617097cd61d3568a1a5717d2ed7bf2d182876 (diff) | |
parent | 5cb22b30f482466d27cfd0a0023b59899a9497f4 (diff) | |
download | pygments-4506c64add175aec620041c42f06505208efc02c.tar.gz |
Merged in crazymaster/pygments-main (pull request #295)
Add alias for elisp
Diffstat (limited to 'pygments/lexers/functional.py')
-rw-r--r-- | pygments/lexers/functional.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/pygments/lexers/functional.py b/pygments/lexers/functional.py index 5552cd46..122114fa 100644 --- a/pygments/lexers/functional.py +++ b/pygments/lexers/functional.py @@ -996,7 +996,7 @@ class HaskellLexer(RegexLexer): ], 'character': [ # Allows multi-chars, incorrectly. - (r"[^\\']", String.Char), + (r"[^\\']'", String.Char, '#pop'), (r"\\", String.Escape, 'escape'), ("'", String.Char, '#pop'), ], @@ -2532,7 +2532,7 @@ class NixLexer(RegexLexer): ('(%s)' % '|'.join(re.escape(entry) + '\\b' for entry in builtins), Name.Builtin), - (r'\b(true|false)\b', Name.Constant), + (r'\b(true|false|null)\b', Name.Constant), # operators ('(%s)' % '|'.join(re.escape(entry) for entry in operators), @@ -2559,7 +2559,8 @@ class NixLexer(RegexLexer): (r'[a-zA-Z][a-zA-Z0-9\+\-\.]*\:[a-zA-Z0-9%/?:@&=+$,\\_.!~*\'-]+', Literal), # names of variables - (r'[a-zA-Z_][a-zA-Z0-9_\'-]*', String.Symbol), + (r'[a-zA-Z0-9-_]+\s*=', String.Symbol), + (r'[a-zA-Z_][a-zA-Z0-9_\'-]*', Text), ], 'comment': [ |