diff options
author | Camil Staps <info@camilstaps.nl> | 2016-02-16 10:00:09 +0100 |
---|---|---|
committer | Camil Staps <info@camilstaps.nl> | 2016-02-16 10:00:09 +0100 |
commit | 529617b57c1625527765c6fee6e327f90d71a956 (patch) | |
tree | 8f2f0782b710b5653dcb65dc5a7b84d1e96fa080 | |
parent | 9131b270427a1810aae6674e4cba4c98c5afec59 (diff) | |
download | pygments-529617b57c1625527765c6fee6e327f90d71a956.tar.gz |
Fix Clean: allow typedef on first line
-rw-r--r-- | pygments/lexers/clean.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pygments/lexers/clean.py b/pygments/lexers/clean.py index 7fb86844..755c989c 100644 --- a/pygments/lexers/clean.py +++ b/pygments/lexers/clean.py @@ -135,6 +135,7 @@ class CleanLexer(ExtendedRegexLexer): # Type definitions (r'(?<=\n)([ \t]*)(::)', bygroups(store_indent, Punctuation), 'typedef'), + (r'^([ \t]*)(::)', bygroups(store_indent, Punctuation), 'typedef'), # Literals (r'\'\\?.(?<!\\)\'', String.Char), |