diff options
author | Georg Brandl <georg@python.org> | 2014-10-07 22:34:18 +0200 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2014-10-07 22:34:18 +0200 |
commit | d3ef5d1b6454586e50731df505aa52951f03d60f (patch) | |
tree | d0e5a5549b4bb396887155c7dea58424ad160987 | |
parent | 292b11fdfa96f33f40380a1053b65a2d5f344783 (diff) | |
download | pygments-d3ef5d1b6454586e50731df505aa52951f03d60f.tar.gz |
Apache conf: recognize backslash line cont
-rw-r--r-- | pygments/lexers/configs.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/pygments/lexers/configs.py b/pygments/lexers/configs.py index 19d8c029..44475357 100644 --- a/pygments/lexers/configs.py +++ b/pygments/lexers/configs.py @@ -288,7 +288,9 @@ class ApacheConfLexer(RegexLexer): (r'\.+', Text), ], 'value': [ + (r'\\\n', Text), (r'$', Text, '#pop'), + (r'\\', Text), (r'[^\S\n]+', Text), (r'\d+\.\d+\.\d+\.\d+(?:/\d+)?', Number), (r'\d+', Number), @@ -298,8 +300,8 @@ class ApacheConfLexer(RegexLexer): r'notice|info|debug|registry|script|inetd|standalone|' r'user|group)\b', Keyword), (r'"([^"\\]*(?:\\.[^"\\]*)*)"', String.Double), - (r'[^\s"]+', Text) - ] + (r'[^\s"\\]+', Text) + ], } |