-
-
Notifications
You must be signed in to change notification settings - Fork 96
Expand file tree
/
Copy pathkconfig.syntax
More file actions
83 lines (71 loc) · 2.78 KB
/
Copy pathkconfig.syntax
File metadata and controls
83 lines (71 loc) · 2.78 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
# Kconfig syntax
#
# Specifications:
# https://docs.kernel.org/kbuild/kconfig-language.html
# https://github.com/ulfalizer/Kconfiglib?tab=readme-ov-file#kconfig-extensions
define kword yellow
define type brightmagenta
define property brightmagenta
define condition yellow
define operator brightcyan
define brace brightcyan
define number cyan
define string green
define escape brightgreen
define comment brown
context default
keyword whole linestart \[\t\s\]config kword
keyword whole linestart \[\t\s\]menuconfig kword
keyword whole linestart \[\t\s\]menu kword
keyword whole linestart \[\t\s\]endmenu kword
keyword whole linestart \[\t\s\]mainmenu kword
keyword whole linestart \[\t\s\]choice kword
keyword whole linestart \[\t\s\]endchoice kword
keyword whole linestart \[\t\s\]comment kword
keyword whole linestart \[\t\s\]source kword
keyword whole linestart \[\t\s\]osource kword
keyword whole linestart \[\t\s\]rsource kword
keyword whole linestart \[\t\s\]orsource kword
keyword whole if condition
keyword whole linestart \[\t\s\]endif condition
keyword whole linestart \[\t\s\]bool type
keyword whole linestart \[\t\s\]tristate type
keyword whole linestart \[\t\s\]string type
keyword whole linestart \[\t\s\]hex type
keyword whole linestart \[\t\s\]int type
keyword whole linestart \[\t\s\]def_bool type
keyword whole linestart \[\t\s\]def_tristate type
keyword whole linestart \[\t\s\]def_string type
keyword whole linestart \[\t\s\]def_hex type
keyword whole linestart \[\t\s\]def_int type
keyword whole linestart \[\t\s\]prompt property
keyword whole linestart \[\t\s\]default property
keyword whole linestart \[\t\s\]depends\son property
keyword whole linestart \[\t\s\]select property
keyword whole linestart \[\t\s\]imply property
keyword whole linestart \[\t\s\]transitional property
keyword whole linestart \[\t\s\]visible\sif property
keyword whole linestart \[\t\s\]range property
keyword whole linestart \[\t\s\]option property
keyword whole linestart \[\t\s\]optional property
keyword whole linestart \[\t\s\]help property
keyword whole linestart \[\t\s\]---help--- property
keyword = operator
keyword > operator
keyword < operator
keyword >= operator
keyword <= operator
keyword || operator
keyword && operator
keyword ! operator
keyword ( brace
keyword ) brace
keyword whole 0x\{0123456789ABCDEFabcdef\}\[0123456789ABCDEFabcdef\] number
keyword whole \{0123456789\}\[0123456789\] number
# sometimes quotes are escaped in help like \"foo\" => do not start string context
keyword \\"
context # \n comment
spellcheck
context " " string
keyword \\" escape
keyword \\\\ escape