From ec3e33f2dd46a0df5ca35c0e6c37f5faae19a2ba Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Wed, 17 Feb 2016 10:28:12 +0100 Subject: Hsail: fix two issues to lex examplefile. --- pygments/lexers/asm.py | 5 ++--- 1 file 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) -- cgit v1.2.1