xcompose.vim (1283B)
1 " Vim syntax file 2 " Language: XCompose 3 " Maintainer: ObserverOfTime <chronobserver@disroot.org> 4 " Filenames: .XCompose, Compose 5 " Last Change: 2023 Nov 09 6 7 " Comments 8 syn keyword xcomposeTodo contained TODO FIXME XXX 9 syn match xcomposeComment /#.*/ contains=xcomposeTodo 10 11 " Includes 12 syn keyword xcomposeInclude include nextgroup=xcomposeFile skipwhite 13 syn match xcomposeFile /"\([^"]\|\\"\)\+"/ contained 14 syn match xcomposeSubstitution /%[HLS]/ contained containedin=xcomposeFile 15 16 " Modifiers 17 syn keyword xcomposeModifier Ctrl Lock Caps Shift Alt Meta None 18 syn match xcomposeModifierPrefix /\s*\zs[!~]\ze\s*/ 19 20 " Keysyms 21 syn match xcomposeKeysym /<[A-Za-z0-9_]\+>/ 22 syn match xcomposeKeysym /[A-Za-z0-9_]\+/ contained 23 syn match xcomposeString /"\([^"]\|\\"\)\+"/ contained nextgroup=xcomposeKeysym skipwhite 24 syn match xcomposeColon /:/ nextgroup=xcomposeKeysym,xcomposeString skipwhite 25 26 hi def link xcomposeColon Delimiter 27 hi def link xcomposeComment Comment 28 hi def link xcomposeFile String 29 hi def link xcomposeInclude Include 30 hi def link xcomposeKeysym Constant 31 hi def link xcomposeModifier Function 32 hi def link xcomposeModifierPrefix Operator 33 hi def link xcomposeString String 34 hi def link xcomposeSubstitution Special 35 hi def link xcomposeTodo Todo 36 37 let b:current_syntax = 'xcompose'