From 5948faee76fd581c129e75a77af56c3d2fe766a7 Mon Sep 17 00:00:00 2001 From: Nils Husung Date: Wed, 14 Sep 2022 22:01:56 +0200 Subject: [PATCH] Add { and } to punctuation for GNU Assembly lexer (#2230) This allows lexing instructions like: vpscatterqd %ymm0, 0x404050(,%zmm2,4) {%k1} --- pygments/lexers/asm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pygments/lexers/asm.py b/pygments/lexers/asm.py index 6087d6ed27..aa24f00b4c 100644 --- a/pygments/lexers/asm.py +++ b/pygments/lexers/asm.py @@ -95,7 +95,7 @@ class GasLexer(RegexLexer): (r'/[*][\w\W]*?[*]/', Comment.Multiline) ], 'punctuation': [ - (r'[-*,.()\[\]!:]+', Punctuation) + (r'[-*,.()\[\]!:{}]+', Punctuation) ] }