diff options
author | Georg Brandl <georg@python.org> | 2014-10-16 10:01:17 +0200 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2014-10-16 10:01:17 +0200 |
commit | f73424b26123a98834eb82ddf799e47e2a2a6c38 (patch) | |
tree | b98a9d8c70cbcad34cb020224ecd52a23fb96876 /pygments/lexers/prolog.py | |
parent | 5727fe42393a86817bd0f702d93c3fc399b68eb3 (diff) | |
download | pygments-f73424b26123a98834eb82ddf799e47e2a2a6c38.tar.gz |
More fixes thanks to regexlint.
Diffstat (limited to 'pygments/lexers/prolog.py')
-rw-r--r-- | pygments/lexers/prolog.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/pygments/lexers/prolog.py b/pygments/lexers/prolog.py index 6914bd78..b9e06ed2 100644 --- a/pygments/lexers/prolog.py +++ b/pygments/lexers/prolog.py @@ -100,10 +100,10 @@ class LogtalkLexer(RegexLexer): tokens = { 'root': [ # Directives - (r'^\s*:-\s',Punctuation,'directive'), + (r'^\s*:-\s', Punctuation, 'directive'), # Comments (r'%.*?\n', Comment), - (r'/\*(.|\n)*?\*/',Comment), + (r'/\*(.|\n)*?\*/', Comment), # Whitespace (r'\n', Text), (r'\s+', Text), @@ -231,12 +231,12 @@ class LogtalkLexer(RegexLexer): (r'[()\[\],.|]', Text), # Atoms (r"[a-z][a-zA-Z0-9_]*", Text), - (r"[']", String, 'quoted_atom'), + (r"'", String, 'quoted_atom'), ], 'quoted_atom': [ - (r"['][']", String), - (r"[']", String, '#pop'), + (r"''", String), + (r"'", String, '#pop'), (r'\\([\\abfnrtv"\']|(x[a-fA-F0-9]+|[0-7]+)\\)', String.Escape), (r"[^\\'\n]+", String), (r'\\', String), @@ -248,7 +248,7 @@ class LogtalkLexer(RegexLexer): (r'(e(lse|ndif))[.]', Keyword, 'root'), # Entity directives (r'(category|object|protocol)(?=[(])', Keyword, 'entityrelations'), - (r'(end_(category|object|protocol))[.]',Keyword, 'root'), + (r'(end_(category|object|protocol))[.]', Keyword, 'root'), # Predicate scope directives (r'(public|protected|private)(?=[(])', Keyword, 'root'), # Other directives @@ -275,7 +275,7 @@ class LogtalkLexer(RegexLexer): (r'([A-Z_][a-zA-Z0-9_]*)', Name.Variable), # Atoms (r"[a-z][a-zA-Z0-9_]*", Text), - (r"[']", String, 'quoted_atom'), + (r"'", String, 'quoted_atom'), # Strings (r'"(\\\\|\\"|[^"])*"', String), # End of entity-opening directive @@ -286,7 +286,7 @@ class LogtalkLexer(RegexLexer): (r'[()\[\],.|]', Text), # Comments (r'%.*?\n', Comment), - (r'/\*(.|\n)*?\*/',Comment), + (r'/\*(.|\n)*?\*/', Comment), # Whitespace (r'\n', Text), (r'\s+', Text), |