From 1e34fa1806ef2a29af070e6f9405e57bf0348520 Mon Sep 17 00:00:00 2001 From: thatsIch Date: Tue, 18 Apr 2017 23:25:37 +0200 Subject: [PATCH] Fixes #43: Adding measure and variable support for shapes --- Rainmeter.sublime-syntax | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Rainmeter.sublime-syntax b/Rainmeter.sublime-syntax index 3d30f3b..6297c24 100644 --- a/Rainmeter.sublime-syntax +++ b/Rainmeter.sublime-syntax @@ -183,6 +183,14 @@ contexts: captures: 1: support.constant.option_values.rainmeter - include: meter-shape-modifier + # capture measures + - match: "(\\[.+\\])" + captures: + 1: variable.other.dynamic.rainmeter + # capture variables + - match: "(\\#.+\\#)" + captures: + 1: support.variable.rainmeter - match: $ pop: true