Skip to content

Commit

Permalink
Updated syntax highlighting for sitemap and items.
Browse files Browse the repository at this point in the history
Added Buttongrid, Button, Colortemperaturepicker, Input and Mapview for
sitemap syntax highlighting.
Added Number:Dimension highlighting.

Signed-off-by: TheNetStriker <[email protected]>
  • Loading branch information
TheNetStriker committed Dec 31, 2024
1 parent f470214 commit 7269f9e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions meta/openhab.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -360,11 +360,11 @@
"name": "variable.language.openhab"
},
{
"match": "\\b(Color|Contact|DateTime|Dimmer|Group|Number|Player|Rollershutter|String|Switch|Location)\\b",
"match": "\\b(Color|Contact|DateTime|Dimmer|Group|Number:[a-zA-Z]*|Number|Player|Rollershutter|String|Switch|Location)\\b",
"name": "variable.language.openhab"
},
{
"match": "\\b(Frame|Default|Text|Group|Switch|Selection|Setpoint|Slider|Colorpicker|Chart|Webview|Image|Video)\\b",
"match": "\\b(Frame|Default|Text|Group|Switch|Buttongrid|Button|Selection|Setpoint|Slider|Colorpicker|Colortemperaturepicker|Input|Chart|Webview|Mapview|Image|Video)\\b",
"name": "variable.language.openhab"
},
{
Expand Down
2 changes: 1 addition & 1 deletion snippets/openhab.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
},
"item-in-sitemap": {
"prefix": "item-in-sitemap",
"body": "${1|Chart,Colorpicker,Default,Frame,Group,Image,Mapview,Selection,Setpoint,Slider,Switch,Text,Video,Webview|} item=${2:Item_ID} label=\"${3:Item Label}\" icon=\"${3:icon}\"",
"body": "${1|Buttongrid,Button,Chart,Colorpicker,Colortemperaturepicker,Default,Frame,Group,Image,Input,Mapview,Selection,Setpoint,Slider,Switch,Text,Video,Webview|} item=${2:Item_ID} label=\"${3:Item Label}\" icon=\"${3:icon}\"",
"description": "Generic openHAB Item snippet to put in *.sitemap"
}
}

0 comments on commit 7269f9e

Please sign in to comment.