diff options
author | Georg Brandl <georg@python.org> | 2014-11-06 09:40:46 +0100 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2014-11-06 09:40:46 +0100 |
commit | 36b3558ffc26c1c92036b66a6a635d2eaabe8e09 (patch) | |
tree | 342f8020c7cb444fd2aad8da092bc850b838330c | |
parent | 30813f6b4f5e8e8590e0b3206b43c14730900506 (diff) | |
download | pygments-36b3558ffc26c1c92036b66a6a635d2eaabe8e09.tar.gz |
Fix allowing whitespace before preprocessor commands in NASM.
-rw-r--r-- | pygments/lexers/asm.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pygments/lexers/asm.py b/pygments/lexers/asm.py index f16dbadd..54dfe4a9 100644 --- a/pygments/lexers/asm.py +++ b/pygments/lexers/asm.py @@ -338,8 +338,8 @@ class NasmLexer(RegexLexer): flags = re.IGNORECASE | re.MULTILINE tokens = { 'root': [ - include('whitespace'), (r'^\s*%', Comment.Preproc, 'preproc'), + include('whitespace'), (identifier + ':', Name.Label), (r'(%s)(\s+)(equ)' % identifier, bygroups(Name.Constant, Keyword.Declaration, Keyword.Declaration), |