Skip to content

Commit

Permalink
Add { and } to punctuation for GNU Assembly lexer (#2230)
Browse files Browse the repository at this point in the history
This allows lexing instructions like:

    vpscatterqd %ymm0, 0x404050(,%zmm2,4) {%k1}
  • Loading branch information
nhusung committed Sep 14, 2022
1 parent f2a8eed commit 5948fae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pygments/lexers/asm.py
Expand Up @@ -95,7 +95,7 @@ class GasLexer(RegexLexer):
(r'/[*][\w\W]*?[*]/', Comment.Multiline)
],
'punctuation': [
(r'[-*,.()\[\]!:]+', Punctuation)
(r'[-*,.()\[\]!:{}]+', Punctuation)
]
}

Expand Down

0 comments on commit 5948fae

Please sign in to comment.