From: Stefan Huber Date: Wed, 16 Mar 2022 08:53:44 +0000 (+0100) Subject: dis: Fix label matching X-Git-Url: https://git.sthu.org/?a=commitdiff_plain;h=c66c3bcdde97e770e22cef3897feb75c82975737;p=vimconf.git dis: Fix label matching --- 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 ""