From 125341a1423a9d9f601e0ba5b9d8a691479d7d1e Mon Sep 17 00:00:00 2001 From: thatsIch Date: Wed, 2 May 2018 23:35:47 +0200 Subject: [PATCH] Update to Rainmeter Beta 4.2 Revision 3048 Added support for Blacklist & Whitelist attribute being pipe-seperated lists --- Rainmeter.sublime-completions | 2 +- Rainmeter.sublime-syntax | 25 +++++++++++++++++++++++++ messages/2.21.0.md | 10 ++++++++++ 3 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 messages/2.21.0.md diff --git a/Rainmeter.sublime-completions b/Rainmeter.sublime-completions index 9d9fdac..cacbb56 100644 --- a/Rainmeter.sublime-completions +++ b/Rainmeter.sublime-completions @@ -621,7 +621,7 @@ "HKEY_LOCAL_MACHINE", "HKEY_CLASSES_ROOT", "HKEY_PERFORMANCE_DATA", - "HKEY_DYN_DATA" + "HKEY_DYN_DATA", "Alias", "CategoryDefault", diff --git a/Rainmeter.sublime-syntax b/Rainmeter.sublime-syntax index 0ae1130..3394ec2 100644 --- a/Rainmeter.sublime-syntax +++ b/Rainmeter.sublime-syntax @@ -630,6 +630,14 @@ contexts: 1: storage.type.option.predefined.rainmeter 2: keyword.operator.option.equal.rainmeter 3: constant.numeric.rainmeter + # Specific Blacklist, Whitelist Options + - match: "(?i)^\\s*(Blacklist|Whitelist)\\s*(=)\\s*" + scope: meta.option.predefined.rainmeter + captures: + 1: storage.type.option.predefined.rainmeter + 2: keyword.operator.option.equal.rainmeter + push: pipe-seperated-list + # Specific Rollup, Percent, RawValue, PIDToName Options - match: "(?i)^\\s*(Rollup|Percent|RawValue|PIDToName)\\s*(=)\\s*(1|0)" scope: meta.option.predefined.rainmeter @@ -808,3 +816,20 @@ contexts: captures: 1: support.constant.option_values.rainmeter 2: support.constant.option_values.rainmeter + + pipe-seperated-list: + # match first entry in the pipe seperated list + - match: "(?i)\\s*([a-zA-Z0-9._-]+)\\s*" + captures: + 1: support.constant.option_values.rainmeter + # match all entries being pipe seperated + - match: "(?i)\\s*(\\|)\\s*([a-zA-Z0-9._-]+)\\s*" + captures: + 1: keyword.operator.option.equal.rainmeter + 2: support.constant.option_values.rainmeter + # invalid all other seperators + - match: "(?i)\\s*([^a-zA-Z0-9._-|\\s]+)\\s*" + captures: + 1: invalid.rainmeter + - match: "$" + pop: true \ No newline at end of file diff --git a/messages/2.21.0.md b/messages/2.21.0.md new file mode 100644 index 0000000..4643786 --- /dev/null +++ b/messages/2.21.0.md @@ -0,0 +1,10 @@ +# Sublime Rainmeter Release 2.21.0 + +* Update to Rainmeter Beta 4.2 Revision 3048 +* Added support for Blacklist & Whitelist attribute being pipe-seperated lists + +[Full release notes](https://github.com/thatsIch/sublime-rainmeter/releases/tag/2.21.0) + +--- + +A lot of effort has been put into Sublime Rainmeter. If you like it, star the [repository](https://github.com/thatsIch/sublime-rainmeter).