diff options
author | Georg Brandl <georg@python.org> | 2016-02-17 10:28:12 +0100 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2016-02-17 10:28:12 +0100 |
commit | ec3e33f2dd46a0df5ca35c0e6c37f5faae19a2ba (patch) | |
tree | 8a7d9c8c46ed503d30dbca328d165d03b75197ce | |
parent | 26cfb3066db7d76a5a6907f9627c6d693ab771a9 (diff) | |
download | pygments-ec3e33f2dd46a0df5ca35c0e6c37f5faae19a2ba.tar.gz |
Hsail: fix two issues to lex examplefile.
-rw-r--r-- | pygments/lexers/asm.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/pygments/lexers/asm.py b/pygments/lexers/asm.py index 760dd720..a489dca0 100644 --- a/pygments/lexers/asm.py +++ b/pygments/lexers/asm.py @@ -245,7 +245,7 @@ class HsailLexer(RegexLexer): (string, String), - (r'@' + identifier + ':', Name.Label), + (r'@' + identifier + ':?', Name.Label), (register, Name.Variable.Anonymous), @@ -326,8 +326,7 @@ class HsailLexer(RegexLexer): '_downi_sat', '_zeroi_sat', '_neari_sat', '_supi', '_sdowni', '_szeroi', '_sneari', '_supi_sat', '_sdowni_sat', '_szeroi_sat', '_sneari_sat', '_pp', '_ps', '_sp', '_ss', '_s', '_p', '_pp_sat', - '_ps_sat', '_sp_sat', '_ss_sat', '_s_sat', '_p_sat'), - suffix=r'\b'), Keyword), + '_ps_sat', '_sp_sat', '_ss_sat', '_s_sat', '_p_sat')), Keyword), # Integer types (r'i[1-9]\d*', Keyword) |