Difference between revisions of "Vim syntax patch"
Jump to navigation
Jump to search
(Created page with "<code> if matchstr(bufname("%"), "25-fw-names") != "" syn region A start=/- [adr]=[0-9]/ end=/^/ contains=C,E,D syn match C /[a-z]\+\ze=/ contained syn match D /=\zs[^=]...") |
|||
Line 1: | Line 1: | ||
− | + | if matchstr(bufname("%"), "25-fw-names") != "" | |
− | if matchstr(bufname("%"), "25-fw-names") != "" | + | syn region A start=/- [adr]=[0-9]/ end=/^/ contains=C,E,D |
− | + | syn match C /[a-z]\+\ze=/ contained | |
− | + | syn match D /=\zs[^=]\+\ze / contained | |
− | + | syn match E /=\zs[^=]\+\ze$/ contained | |
− | + | ||
− | + | hi def link C Type | |
− | + | hi def link D Keyword | |
− | + | hi def link E Constant | |
− | + | endif | |
− | endif | ||
− |
Revision as of 10:40, 13 March 2023
if matchstr(bufname("%"), "25-fw-names") != "" syn region A start=/- [adr]=[0-9]/ end=/^/ contains=C,E,D syn match C /[a-z]\+\ze=/ contained syn match D /=\zs[^=]\+\ze / contained syn match E /=\zs[^=]\+\ze$/ contained hi def link C Type hi def link D Keyword hi def link E Constant endif