projects
/
vimconf.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c005df5
)
dis: Fix label matching
author
Stefan Huber <shuber@sthu.org>
Wed, 16 Mar 2022 08:53:44 +0000
(09:53 +0100)
committer
Stefan Huber <shuber@sthu.org>
Wed, 16 Mar 2022 08:53:44 +0000
(09:53 +0100)
syntax/dis.vim
patch
|
blob
|
history
diff --git
a/syntax/dis.vim
b/syntax/dis.vim
index 19446d54c5f983d54ee36c1f47ba587dae580e3c..8da41dd7cadd0d1df0e5e0c95abdea930af3e44f 100644
(file)
--- 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 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 "<f>", 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 "<internal disassembler error>"
syn match disHexDump ":\t\([0-9a-f][0-9a-f][ \t]\)\+"hs=s+1
syn match disError "<internal disassembler error>"