diff options
author | Georg Brandl <georg@python.org> | 2014-01-09 20:45:52 +0100 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2014-01-09 20:45:52 +0100 |
commit | b6ae8a7ede492c51ed960a4dd4f85df369a81bd1 (patch) | |
tree | 675c87ff8fd4908500f247ca4bd44211540680be /pygments/lexers/compiled.py | |
parent | 97a42362e26d87019ac5788251dca7a31e7bca12 (diff) | |
download | pygments-b6ae8a7ede492c51ed960a4dd4f85df369a81bd1.tar.gz |
Closes #891: remove too broad string escape regex from Prolog lexer.
Diffstat (limited to 'pygments/lexers/compiled.py')
-rw-r--r-- | pygments/lexers/compiled.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pygments/lexers/compiled.py b/pygments/lexers/compiled.py index 64fc6c0d..a272878c 100644 --- a/pygments/lexers/compiled.py +++ b/pygments/lexers/compiled.py @@ -1659,7 +1659,7 @@ class PrologLexer(RegexLexer): (r'[\[\](){}|.,;!]', Punctuation), (r':-|-->', Punctuation), (r'"(?:\\x[0-9a-fA-F]+\\|\\u[0-9a-fA-F]{4}|\\U[0-9a-fA-F]{8}|' - r'\\[0-7]+\\|\\[\w\W]|[^"])*"', String.Double), + r'\\[0-7]+\\|\\["\nabcefnrstv]|[^\\"])*"', String.Double), (r"'(?:''|[^'])*'", String.Atom), # quoted atom # Needs to not be followed by an atom. #(r'=(?=\s|[a-zA-Z\[])', Operator), |