diff options
author | Alex Zimin <ziminav@gmail.com> | 2011-12-02 11:04:45 +0800 |
---|---|---|
committer | Alex Zimin <ziminav@gmail.com> | 2011-12-02 11:04:45 +0800 |
commit | dc639b93d8e75e32aa5bd62cb58344fe320360f9 (patch) | |
tree | 86fe89344951479fe6b00ae0fca2a75173e329e9 /pygments/lexers/dotnet.py | |
parent | 254267afdd6a9609ec62948a3ef23084f338dfbc (diff) | |
download | pygments-dc639b93d8e75e32aa5bd62cb58344fe320360f9.tar.gz |
fix nemerle lexer $exressions errors
Diffstat (limited to 'pygments/lexers/dotnet.py')
-rw-r--r-- | pygments/lexers/dotnet.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pygments/lexers/dotnet.py b/pygments/lexers/dotnet.py index f78df352..16c424f4 100644 --- a/pygments/lexers/dotnet.py +++ b/pygments/lexers/dotnet.py @@ -214,7 +214,7 @@ class NemerleLexer(RegexLexer): (r'[~!%^&*()+=|\[\]:;,.<>/?-]', Punctuation), (r'[{}]', Punctuation), - (r'@"(\\\\|\\"|[^"])*"', String), + (r'@"(""|[^"])*"', String), (r'"(\\\\|\\"|[^"\n])*["\n]', String), (r"'\\.'|'[^\\]'", String.Char), (r"0[xX][0-9a-fA-F]+[Ll]?", Number), @@ -278,8 +278,9 @@ class NemerleLexer(RegexLexer): ], 'splice-string-content': [ (r'if|match', Keyword), - (r'[~!%^&*+=|\[\]:;,.<>/?-]', Punctuation), + (r'[~!%^&*+=|\[\]:;,.<>/?-\\"$ ]', Punctuation), (cs_ident, Name), + (r'\d+', Number), (r'\(', Punctuation, '#push'), (r'\)', Punctuation, '#pop') ] |