summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCamil Staps <info@camilstaps.nl>2016-02-16 10:00:09 +0100
committerCamil Staps <info@camilstaps.nl>2016-02-16 10:00:09 +0100
commit529617b57c1625527765c6fee6e327f90d71a956 (patch)
tree8f2f0782b710b5653dcb65dc5a7b84d1e96fa080
parent9131b270427a1810aae6674e4cba4c98c5afec59 (diff)
downloadpygments-529617b57c1625527765c6fee6e327f90d71a956.tar.gz
Fix Clean: allow typedef on first line
-rw-r--r--pygments/lexers/clean.py1
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),