forked from CWempe/openhab-mcedit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
openhab-items.syntax
82 lines (69 loc) · 2.69 KB
/
openhab-items.syntax
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
# Syntax highlighting for items files of openHAB in mcedit
# default colors
define color_comment brown
define color_groupitem brightmagenta
define color_item brightred
define color_lable brightgreen
define color_lable_var white
define color_group brightcyan
define color_icon yellow
define color_binding green
define color_binding_quote brightgreen
define color_groupfunction red
define color_enum yellow
context default
# GroupItem
keyword whole Group color_groupitem
# Items
keyword whole Switch color_item
keyword whole Rollershutter color_item
keyword whole Number color_item
keyword whole String color_item
keyword whole Dimmer color_item
keyword whole Contact color_item
keyword whole DateTime color_item
keyword whole Color color_item
keyword whole Player color_item
keyword whole Location color_item
keyword whole Call color_item
keyword whole Image color_item
# Group Functions
keyword whole AND color_groupfunction
keyword whole OR color_groupfunction
keyword whole NAND color_groupfunction
keyword whole NOR color_groupfunction
keyword whole AVG color_groupfunction
keyword whole SUM color_groupfunction
keyword whole MAX color_groupfunction
keyword whole MIN color_groupfunction
keyword whole COUNT color_groupfunction
# Enum Types
keyword whole INCREASE color_enum
keyword whole DECREASE color_enum
keyword whole NEXT color_enum
keyword whole PREVIOUS color_enum
keyword whole ON color_enum
keyword whole OFF color_enum
keyword whole OPEN color_enum
keyword whole CLOSED color_enum
keyword whole PLAY color_enum
keyword whole PAUSE color_enum
keyword whole REWIND color_enum
keyword whole FASTFORWARD color_enum
keyword whole STOP color_enum
keyword whole MOVE color_enum
keyword whole UP color_enum
keyword whole DOWN color_enum
# Comments
context /\* \*/ color_comment
context // \n color_comment
# Lables
context " " color_lable
keyword [*] color_lable_var
# Groups
context ( ) color_group
# Icons
context < > color_icon
# Bindings
context { } color_binding
keyword "*" color_binding_quote