summaryrefslogtreecommitdiff
path: root/pygments/lexers/prolog.py
diff options
context:
space:
mode:
authorMatthäus G. Chajdas <dev@anteru.net>2021-11-13 21:23:04 +0100
committerMatthäus G. Chajdas <dev@anteru.net>2021-11-13 21:23:04 +0100
commitd754437935040d886b2197903da5a616e79a664c (patch)
tree0a883974b4193e1484f9a763b8225c90a02af75b /pygments/lexers/prolog.py
parentba4e27f321d3375b540be0c59fc576112a66e649 (diff)
downloadpygments-git-d754437935040d886b2197903da5a616e79a664c.tar.gz
Fix #1479.
Diffstat (limited to 'pygments/lexers/prolog.py')
-rw-r--r--pygments/lexers/prolog.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pygments/lexers/prolog.py b/pygments/lexers/prolog.py
index cb4233d6..21c81362 100644
--- a/pygments/lexers/prolog.py
+++ b/pygments/lexers/prolog.py
@@ -44,7 +44,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]+\\|\\["\nabcefnrstv]|[^\\"])*"', String.Double),
+ r'\\[0-7]+\\|\\["\\abcefnrstv]|[^\\"])*"', String.Double),
(r"'(?:''|[^'])*'", String.Atom), # quoted atom
# Needs to not be followed by an atom.
# (r'=(?=\s|[a-zA-Z\[])', Operator),