diff options
Diffstat (limited to 'pygments/lexers/prolog.py')
-rw-r--r-- | pygments/lexers/prolog.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pygments/lexers/prolog.py b/pygments/lexers/prolog.py index 94f4024c..17ff2c6c 100644 --- a/pygments/lexers/prolog.py +++ b/pygments/lexers/prolog.py @@ -227,7 +227,7 @@ class LogtalkLexer(RegexLexer): # Existential quantifier (r'\^', Operator), # Strings - (r'"(\\\\|\\"|[^"])*"', String), + (r'"(\\\\|\\[^\\]|[^"\\])*"', String), # Punctuation (r'[()\[\],.|]', Text), # Atoms @@ -277,7 +277,7 @@ class LogtalkLexer(RegexLexer): (r"[a-z][a-zA-Z0-9_]*", Text), (r"'", String, 'quoted_atom'), # Strings - (r'"(\\\\|\\"|[^"])*"', String), + (r'"(\\\\|\\[^\\]|[^"\\])*"', String), # End of entity-opening directive (r'([)]\.)', Text, 'root'), # Scope operator |