comparison runtime/syntax/xcompose.vim @ 33744:4006051bf85d v9.0.2098

patch 9.0.2098: No filetype support for xcompose files Commit: https://github.com/vim/vim/commit/4f9074b96cc7efb1c829ca74902a851551dcf4e8 Author: ObserverOfTime <chronobserver@disroot.org> Date: Sat Nov 11 09:12:27 2023 +0100 patch 9.0.2098: No filetype support for xcompose files Problem: No filetype support for xcompose files Solution: Add filetype detection closes: #13508 Signed-off-by: ObserverOfTime <chronobserver@disroot.org> Signed-off-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Sat, 11 Nov 2023 09:15:04 +0100
parents
children
comparison
equal deleted inserted replaced
33743:35aaf01f7d61 33744:4006051bf85d
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'