Ticket #4176 (new enhancement)

Opened 3 years ago

Syntax highlighting for openHAB

Reported by: CWempe Owned by:
Priority: minor Milestone: Future Releases
Component: mcedit Version: master
Keywords: Cc:
Blocked By: Blocking:
Branch state: no branch Votes for changeset:

Description

I would like to submit syntax highlighting for openHAB files.

openHAB is an open source smart home software.
https://www.openhab.org/

I already created the files in a seperat repository.
https://github.com/CWempe/openhab-mcedit

But there is an issue I don't know if it can be solved easily.

On of the file endings is .rules with is already in the Syntax file.

file (rules|rocks)$ Debian\srules

I guess this is more important than openHAB and cannot be removed. :)

But integrating openHAB without the rules files would not make much sense either.

Is there a way to support both?
Maybe it helps that the openHAB rules files are usually in a folder called rules.
But I am not sure how the pattern needs to be modified to support this.

Just a guess:

file ..\\rules\\*\\.(rules)$ openHAB\sRules
Note: See TracTickets for help on using tickets.