annotate runtime/syntax/xkb.vim @ 7147:c590de398af9

commit https://github.com/vim/vim/commit/ca63501fbcd1cf9c8aa9ff12c093c95b62a89ed7 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Sep 25 20:34:21 2015 +0200 Update various runtime files.
author Christian Brabandt <cb@256bit.org>
date Fri, 25 Sep 2015 20:45:09 +0200
parents 3fc0f57ecb91
children 43efa4f5a8ea
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 " Vim syntax file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 " This is a GENERATED FILE. Please always refer to source file at the URI below.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 " Language: XKB (X Keyboard Extension) components
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 " Maintainer: David Ne\v{c}as (Yeti) <yeti@physics.muni.cz>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5 " Last Change: 2003-04-13
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 " URL: http://trific.ath.cx/Ftp/vim/syntax/xkb.vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 " Setup
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 if version >= 600
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 if exists("b:current_syntax")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 syntax clear
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 syn case match
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 syn sync minlines=100
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 " Comments
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 syn region xkbComment start="//" skip="\\$" end="$" keepend contains=xkbTodo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 syn region xkbComment start="/\*" matchgroup=NONE end="\*/" contains=xkbCommentStartError,xkbTodo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 syn match xkbCommentError "\*/"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 syntax match xkbCommentStartError "/\*" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 syn sync ccomment xkbComment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 syn keyword xkbTodo TODO FIXME contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 " Literal strings
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 syn match xkbSpecialChar "\\\d\d\d\|\\." contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 syn region xkbString start=+"+ skip=+\\\\\|\\"+ end=+"+ contains=xkbSpecialChar oneline
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 " Catch errors caused by wrong parenthesization
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 syn region xkbParen start='(' end=')' contains=ALLBUT,xkbParenError,xkbSpecial,xkbTodo transparent
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 syn match xkbParenError ")"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 syn region xkbBrace start='{' end='}' contains=ALLBUT,xkbBraceError,xkbSpecial,xkbTodo transparent
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 syn match xkbBraceError "}"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 syn region xkbBracket start='\[' end='\]' contains=ALLBUT,xkbBracketError,xkbSpecial,xkbTodo transparent
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 syn match xkbBracketError "\]"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 " Physical keys
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 syn match xkbPhysicalKey "<\w\+>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 " Keywords
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 syn keyword xkbPreproc augment include replace
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 syn keyword xkbConstant False True
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 syn keyword xkbModif override replace
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 syn keyword xkbIdentifier action affect alias allowExplicit approx baseColor button clearLocks color controls cornerRadius count ctrls description driveskbd font fontSize gap group groups height indicator indicatorDrivesKeyboard interpret key keys labelColor latchToLock latchMods left level_name map maximum minimum modifier_map modifiers name offColor onColor outline preserve priority repeat row section section setMods shape slant solid symbols text top type useModMapMods virtualModifier virtualMods virtual_modifiers weight whichModState width
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 syn keyword xkbFunction AnyOf ISOLock LatchGroup LatchMods LockControls LockGroup LockMods LockPointerButton MovePtr NoAction PointerButton SetControls SetGroup SetMods SetPtrDflt Terminate
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 syn keyword xkbTModif default hidden partial virtual
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 syn keyword xkbSect alphanumeric_keys alternate_group function_keys keypad_keys modifier_keys xkb_compatibility xkb_geometry xkb_keycodes xkb_keymap xkb_semantics xkb_symbols xkb_types
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 " Define the default highlighting
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 if version >= 508 || !exists("did_xkb_syntax_inits")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 if version < 508
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 let did_xkb_syntax_inits = 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 command -nargs=+ HiLink hi link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58 command -nargs=+ HiLink hi def link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61 HiLink xkbModif xkbPreproc
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62 HiLink xkbTModif xkbPreproc
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63 HiLink xkbPreproc Preproc
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65 HiLink xkbIdentifier Keyword
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66 HiLink xkbFunction Function
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67 HiLink xkbSect Type
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68 HiLink xkbPhysicalKey Identifier
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
69 HiLink xkbKeyword Keyword
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
71 HiLink xkbComment Comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72 HiLink xkbTodo Todo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
74 HiLink xkbConstant Constant
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75 HiLink xkbString String
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
76
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
77 HiLink xkbSpecialChar xkbSpecial
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
78 HiLink xkbSpecial Special
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
79
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
80 HiLink xkbParenError xkbBalancingError
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
81 HiLink xkbBraceError xkbBalancingError
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
82 HiLink xkbBraketError xkbBalancingError
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
83 HiLink xkbBalancingError xkbError
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
84 HiLink xkbCommentStartError xkbCommentError
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
85 HiLink xkbCommentError xkbError
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
86 HiLink xkbError Error
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
87
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
88 delcommand HiLink
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
89 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
90
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
91 let b:current_syntax = "xkb"