Skip to content

Commit

Permalink
Update to Rainmeter Beta 4.2 Revision 3048
Browse files Browse the repository at this point in the history
Added support for Blacklist & Whitelist attribute being pipe-seperated lists
  • Loading branch information
thatsIch committed May 2, 2018
1 parent 0a86b70 commit 125341a
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Rainmeter.sublime-completions
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,7 @@
"HKEY_LOCAL_MACHINE",
"HKEY_CLASSES_ROOT",
"HKEY_PERFORMANCE_DATA",
"HKEY_DYN_DATA"
"HKEY_DYN_DATA",

"Alias",
"CategoryDefault",
Expand Down
25 changes: 25 additions & 0 deletions Rainmeter.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
10 changes: 10 additions & 0 deletions messages/2.21.0.md
Original file line number Diff line number Diff line change
@@ -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).

0 comments on commit 125341a

Please sign in to comment.