-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathopenhab.nanorc
113 lines (83 loc) · 2.91 KB
/
openhab.nanorc
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
syntax "rules" ".rules"
# Commands
color cyan "\<(import|var|say|if|else|postUpdate|switch|println|case|or|sendCommand)\>"
# Keywords
color green "\<(Timer|Number|String)\>"
color magenta "\<(rule|when|then|end)\>"
color magenta "\<(Item|Time|System)\>"
color magenta "\<(received|command|update|changed|from|to)\>"
color magenta "\<(cron|is)\>"
color magenta "\<(started|shuts|down)\>"
color magenta "\<(name|label|item|period|refresh|icon|mapping|minValue|maxValue|step|switchsupport|url|height|playStream|setMasterVolume|increaseMasterVolume|decreaseMasterVolume)\>"
# Operators
color yellow "[:;,+*|=!\%]" "<" ">" "/" "-" "&"
# Numbers
color red "(\+|-)?([0-9]+(\.[0-9]+)?)"
# Strings
color brightblue ""[^"]*""
# Comments
color brightgreen "//.*"
color brightgreen start="/\*" end="\*/"
color brightgreen start="/\*\*" end="\*/"
syntax "sitemaps" ".sitemap"
# Keywords
color magenta "\<(Switch|Selection|Slider|List|Setpoint|Video|Chart|Webview|Colorpicker|Colortemperaturepicker|Default|Mapview|Input|Buttongrid)\>"
color magenta "\<(Text|Group|Image|Frame)\>"
color magenta "\<(name|label|item|period|refresh|icon|mappings|minValue|maxValue|step|switchsupport|url|height|refresh|visibility|labelcolor|valuecolor|iconcolor|inputHint|staticIcon|buttons)\>"
# Commands
color green "\<(ON|OFF|on|off)\>"
# Numbers
color red "\b([0-9]+(\.[0-9]+)?)\b"
# Operators
color yellow "[:;+*|=!\]" "<" ">" "/" "-"
color magenta "="
# Values
color red "[A-Z0-9\_]+="
# Strings
color brightblue ""[^"]*""
# Comments
color brightgreen "(^:)//.*"
color brightgreen start="/\*" end="\*/"
color brightgreen start="/\*\*" end="\*/"
syntax "items" ".items"
# Icons
color brightgreen start="<" end=">"
# Keywords
color magenta "\<(Switch|Rollershutter|Number|String|Dimmer|Contact|DateTime|Color|Player|Group|Image|Location)\>"
color cyan "\<(AND|OR|NAND|NOR|AVG|SUM|MAX|MIN)\>"
# Groups
color green "\<(Group)\>"
color green start="\(" end="\)"
#Tags
color yellow start="\[" end="\]"
# Strings
color brightblue ""[^"]*""
# Comments
color brightgreen "//.*"
color brightgreen start="/\*" end="\*/"
color brightgreen start="/\*\*" end="\*/"
#Binding
color brightcyan start="\{" end="\}"
syntax "persistence" ".persist"
# Keywords
color magenta "\<(Strategies|Filters|Items)\>"
color cyan "\<(strategy|strategies|default|filter)\>"
# Strings
color brightblue ""[^"]*""
# Comments
color brightgreen "//.*"
color brightgreen start="/\*" end="\*/"
color brightgreen start="/\*\*" end="\*/"
syntax "things" ".things"
# Keywords
color magenta "\<(State|Trigger|Topic|Switch|Rollershutter|Number|String|Dimmer|Contact|DateTime|Color)\>"
color green "\<(Bridge|Thing|Channels|Type)\>"
color yellow "\<(topic|switch|rollershutter|number|string|dimmer|contact|datetime|color)\>"
# Strings
color brightblue ""[^"]*""
# Comments
color brightgreen "//.*"
color brightgreen start="/\*" end="\*/"
color brightgreen start="/\*\*" end="\*/"
#Parameters
color cyan start="\[" end="\]"