forked from airix1/openhabnano
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathopenhab.nanorc
94 lines (69 loc) · 2.33 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
syntax "rules" ".rules"
# Commands
color cyan "\<(import|var|say|if|else|postUpdate|switch|println|case|or|sendCommand|sendTelegram)\>"
# 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)\>"
# Commands
color green "\<(ON|on|CLOSED|closed)\>"
color red "\<(OFF|off|OPEN|open)\>"
# Operators
color yellow "[:;,+*|=!\%]" "<" ">" "/" "-" "&"
# Numbers
color brightcyan "(\+|-)?([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)\>"
color magenta "\<(Text|Group|Image|Frame)\>"
color magenta "\<(name|label|item|period|refresh|icon|mappings|minValue|maxValue|step|switchsupport|url|height|refresh|visibility|valuecolor)\>"
# 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)\>"
color cyan "\<(AND|OR|NAND|NOR|AVG|SUM|MAX|MIN)\>"
# Groups
color green "\<(Group)\>"
color green 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="\*/"