-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsyntax_test.cb
91 lines (84 loc) · 4.89 KB
/
syntax_test.cb
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
84
85
86
87
88
89
90
91
# SYNTAX TEST "Packages/sublime-text-coreboot-syntax/coreboot-devicetree.sublime-syntax"
chip soc/foo/bar
# <- meta.chip.cb keyword.other.chip.cb
# ^^^^^^^^^^^ meta.chip.cb storage.type.chip.cb
register "simple_register" = "1"
# ^^^^^^^^ meta.block.chip.cb meta.register.cb keyword.other.register.cb
# ^ punctuation.definition.string.begin.c
# ^^^^^^^^^^^^^^^ source.c variable.other.indexed.c
# ^ source.c constant.numeric.integer.decimal.c
chip drivers/sensor/temperature
# ^^^^ meta.block.chip.cb meta.chip.cb keyword.other.chip.cb
# ^^^^^^^^^^^^^^^^^^^^^^^^^^ meta.block.chip.cb meta.chip.cb storage.type.chip.cb
register "description" = ""SOC""
# ^^^^^^^^ meta.register.cb keyword.other.register.cb
# ^ punctuation.definition.string.begin.c
# ^^^^^^^^^^^ source.c variable.other.indexed.c
# ^ keyword.operator.assignment.cb
# ^^ string.quoted.double punctuation.definition.string.begin.c
# ^^^ string.quoted.double
# ^^ string.quoted.double punctuation.definition.string.end.c
use ec as temperature_controller
# ^^^ meta.use.cb keyword.other.use.cb
# ^^ meta.use.cb variable.other.use.cb
# ^^ meta.use.cb keyword.other.as.cb
# ^^^^^^^^^^^^^^^^^^^^^^ variable.other.as.cb
device generic 0 on end
# ^^^^^^ meta.device.cb keyword.other.device.cb
# ^^^^^^^ support.type.device.cb
# ^ constant.numeric.integer.hexadecimal
# ^^ keyword.operator.other.cb
# ^^^ keyword.other.end.cb
end
# ^^^ meta.block.chip.cb keyword.other.end.cb
device ref lpc_bridge on
# ^^^^^^ keyword.other.device.cb
# ^^^ keyword.other.ref.cb
# ^^^^^^^^^^ variable.other.ref.cb
# ^^ keyword.operator.other.cb
chip ec/google/chromeec
# ^^^^ keyword.other.chip.cb
# ^^^^^^^^^^^^^^^^^^ storage.type.chip.cb
device pnp 0c09.0 alias ec on end
# ^^^^^^ keyword.other.device.cb
# ^^^ support.type.device.cb
# ^^^^^^ constant.numeric.integer.hexadecimal
# ^^^^^ keyword.other.alias.cb
# ^^ entity.name.alias.cb
# ^^ keyword.operator.other.cb
# ^^^ keyword.other.end.cb
end
# ^^^ meta.block.chip.cb meta.block.device.cb keyword.other.end.cb
end
# ^^^ meta.block.chip.cb keyword.other.end.cb
end
# <- keyword.other.end.cb
fw_config
# <- meta.block.fw_config.cb keyword.other.fw_config.cb
field BOB end
# ^^^^^ meta.block.fw_config.cb meta.field.cb keyword.other.field.cb
# ^^^ meta.block.fw_config.cb meta.field.cb entity.name.field.cb
# ^^^ meta.block.fw_config.cb meta.field.cb keyword.other.end.cb
field FOO 0
# ^^^^^ meta.block.fw_config.cb meta.field.cb keyword.other.field.cb
# ^^^ meta.block.fw_config.cb meta.field.cb entity.name.field.cb
# ^ meta.block.fw_config.cb meta.field.cb constant.numeric.integer
end
# ^^^ meta.block.fw_config.cb meta.field.cb keyword.other.end.cb
field USB_DB 1 2
# ^^^^^ meta.block.fw_config.cb meta.field.cb keyword.other.field.cb
# ^^^^^^ meta.block.fw_config.cb meta.field.cb entity.name.field.cb
# ^ meta.block.fw_config.cb meta.field.cb constant.numeric.integer
# ^ meta.block.fw_config.cb meta.field.cb constant.numeric.integer
option USB_DB_A0 0
# ^^^^^^ meta.block.fw_config.cb meta.field.cb meta.option.cb keyword.other.option.cb
# ^^^^^^^^^ meta.block.fw_config.cb meta.field.cb meta.option.cb entity.name.option.cb
# ^ meta.block.fw_config.cb meta.field.cb meta.option.cb constant.numeric.integer
option USB_DB_A1 1
# ^^^^^^ meta.block.fw_config.cb meta.field.cb meta.option.cb keyword.other.option.cb
# ^^^^^^^^^ meta.block.fw_config.cb meta.field.cb meta.option.cb entity.name.option.cb
# ^ meta.block.fw_config.cb meta.field.cb meta.option.cb constant.numeric.integer
end
# ^^^ meta.block.fw_config.cb meta.field.cb keyword.other.end.cb
end
# <- meta.block.fw_config.cb keyword.other.end.cb