diff options
author | Georg Brandl <georg@python.org> | 2014-01-09 20:31:28 +0100 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2014-01-09 20:31:28 +0100 |
commit | fd07c5a864899d36074081f69e16d7f86695924c (patch) | |
tree | f5b776be3ded77d08f801a12c9543c34d4807700 | |
parent | b079caaf82c5fad49cebadc81c20acecb5630a4b (diff) | |
download | pygments-fd07c5a864899d36074081f69e16d7f86695924c.tar.gz |
Closes #944: fix "ws1" regex in C family lexers to allow "indented" preprocessor directives
-rw-r--r-- | pygments/lexers/compiled.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pygments/lexers/compiled.py b/pygments/lexers/compiled.py index 7901f702..64fc6c0d 100644 --- a/pygments/lexers/compiled.py +++ b/pygments/lexers/compiled.py @@ -43,7 +43,7 @@ class CFamilyLexer(RegexLexer): #: optional Comment or Whitespace _ws = r'(?:\s|//.*?\n|/[*].*?[*]/)+' #: only one /* */ style comment - _ws1 = r'\s*/[*].*?[*]/\s*' + _ws1 = r'\s*(?:/[*].*?[*]/\s*)?' tokens = { 'whitespace': [ |