From c66c3bcdde97e770e22cef3897feb75c82975737 Mon Sep 17 00:00:00 2001 From: Stefan Huber Date: Wed, 16 Mar 2022 09:53:44 +0100 Subject: [PATCH] dis: Fix label matching --- syntax/dis.vim | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/syntax/dis.vim b/syntax/dis.vim index 19446d5..8da41dd 100644 --- a/syntax/dis.vim +++ b/syntax/dis.vim @@ -30,7 +30,10 @@ syn match disAt "@" syn match disSection " \.[a-z][a-z_\.-]*:"he=e-1 syn match disSection "@[a-z0-9_][a-z0-9_-]\+"hs=s+1 contains=disAt,disNumber -syn match disLabel "<[a-z0-9_.][a-z0-9_.@+-]\+>"hs=s+1,he=e-1 contains=disNumber,disSection +" SH: Having a function name like "f" leads to labels like "", which shall +" not be matched as disNumber. +"syn match disLabel "<[a-z0-9_.][a-z0-9_.@+-]*>"hs=s+1,he=e-1 contains=disNumber,disSection +syn match disLabel "<[a-z0-9_.][a-z0-9_.@+-]*>"hs=s+1,he=e-1 contains=disSection syn match disHexDump ":\t\([0-9a-f][0-9a-f][ \t]\)\+"hs=s+1 syn match disError "" -- 2.39.5