diff options
author | Georg Brandl <georg@python.org> | 2014-03-16 09:31:23 +0100 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2014-03-16 09:31:23 +0100 |
commit | 2c2685b93bf0bf61216c36343d081f9f5bee0be2 (patch) | |
tree | b2df39298f034fc84e1b51d546f4350e8d6e89e9 /pygments | |
parent | 5f970c05b90d16ceb70a7c11c33b5a6e14a02809 (diff) | |
parent | 820df2acd2bf0f4b7c507b69546224ea31f09675 (diff) | |
download | pygments-2c2685b93bf0bf61216c36343d081f9f5bee0be2.tar.gz |
Merged in andyops/pygments-main/fixed-vim-literal-strings (pull request #298)
Fixed VimL literal string lexer.
Diffstat (limited to 'pygments')
-rw-r--r-- | pygments/lexers/text.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pygments/lexers/text.py b/pygments/lexers/text.py index 8de786c2..1bab62f3 100644 --- a/pygments/lexers/text.py +++ b/pygments/lexers/text.py @@ -842,7 +842,7 @@ class VimLexer(RegexLexer): # TODO: regexes can have other delims (r'/(\\\\|\\/|[^\n/])*/', String.Regex), (r'"(\\\\|\\"|[^\n"])*"', String.Double), - (r"'(\\\\|\\'|[^\n'])*'", String.Single), + (r"'(''|[^\n'])*'", String.Single), # Who decided that doublequote was a good comment character?? (r'(?<=\s)"[^\-:.%#=*].*', Comment), |