From dd3d12f2f496e39dcecaa3254595829663346b7b Mon Sep 17 00:00:00 2001 From: jpawlowski Date: Sun, 30 Mar 2014 14:01:50 +0000 Subject: [PATCH] add TextMate2 bundle for FHEM config file syntax highlighting git-svn-id: https://svn.fhem.de/fhem/trunk@5377 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- .../FHEM.tmbundle/Syntaxes/FHEM.tmLanguage | 113 ++++++++++++++++++ fhem/contrib/FHEM.tmbundle/info.plist | 16 +++ 2 files changed, 129 insertions(+) create mode 100644 fhem/contrib/FHEM.tmbundle/Syntaxes/FHEM.tmLanguage create mode 100644 fhem/contrib/FHEM.tmbundle/info.plist diff --git a/fhem/contrib/FHEM.tmbundle/Syntaxes/FHEM.tmLanguage b/fhem/contrib/FHEM.tmbundle/Syntaxes/FHEM.tmLanguage new file mode 100644 index 000000000..ed74451e9 --- /dev/null +++ b/fhem/contrib/FHEM.tmbundle/Syntaxes/FHEM.tmLanguage @@ -0,0 +1,113 @@ + + + + + fileTypes + + cfg + fhem.cfg + + firstLineMatch + ^#.*FHEM.* + name + FHEM + patterns + + + match + \b(fhem)\b + name + keyword.definition + + + include + #line_comment + + + begin + ^# + captures + + 0 + + name + punctuation.definition.comment.fhem + + + end + $ + name + comment.block.documentation.fhem + + + captures + + 1 + + name + storage.type.definition + + 2 + + name + entity.name.function + + 3 + + name + constant.language.module + + + match + ^\s*(define)\s+([-a-zA-Z0-9_.]+)\s*([-a-zA-Z0-9_.]+)? + name + meta.function.fhem.define + + + captures + + 1 + + name + entity.name.function + + 2 + + name + entity.name.tag + + 3 + + name + constant.language.module + + + match + ^\s*(attr)\s+([-a-zA-Z0-9_.]+)\s*([-a-zA-Z0-9_.]+)? + name + meta.function.fhem.attr + + + begin + " + end + " + name + string.quoted.double.untitled + patterns + + + match + \\. + name + constant.character.escape.untitled + + + + + scopeName + source.fhem.cfg + uuid + E307B812-A029-43AF-8387-59FA001F469D + + diff --git a/fhem/contrib/FHEM.tmbundle/info.plist b/fhem/contrib/FHEM.tmbundle/info.plist new file mode 100644 index 000000000..092171534 --- /dev/null +++ b/fhem/contrib/FHEM.tmbundle/info.plist @@ -0,0 +1,16 @@ + + + + + contactEmailRot13 + wc@wcf-argjbexf.rh + contactName + Julian Pawlowski + description + Support for FHEM configuration files. + name + FHEM + uuid + 346C0915-559F-4946-A6E3-9E20E4ED08F8 + +