X-Git-Url: https://git.sthu.org/?p=vimconf.git;a=blobdiff_plain;f=syntax%2Fdis.vim;h=8da41dd7cadd0d1df0e5e0c95abdea930af3e44f;hp=19446d54c5f983d54ee36c1f47ba587dae580e3c;hb=c66c3bcdde97e770e22cef3897feb75c82975737;hpb=c005df528fb39d882f9cd14432a16585222750ab 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 ""