From 061840cc8469a0314d09dddb0aebc172cd0e673d Mon Sep 17 00:00:00 2001 From: Raymonzut <40148684+Raymonzut@users.noreply.github.com> Date: Sun, 10 Jan 2021 23:05:47 +0100 Subject: [PATCH] Match variables --- grammars/mblf.cson | 4 ++++ snippets/language-mblf.cson | 3 +++ 2 files changed, 7 insertions(+) diff --git a/grammars/mblf.cson b/grammars/mblf.cson index 116c01d..57827d1 100644 --- a/grammars/mblf.cson +++ b/grammars/mblf.cson @@ -7,6 +7,10 @@ 'extension' ] 'patterns': [ + { + 'match': 'var\ +' + 'name': 'keyword.operator' + }, { 'match': ';;.*' 'name': 'comment' diff --git a/snippets/language-mblf.cson b/snippets/language-mblf.cson index 5993e13..1b447ac 100644 --- a/snippets/language-mblf.cson +++ b/snippets/language-mblf.cson @@ -5,3 +5,6 @@ 'Method documentation': 'prefix': 'doc' 'body': ';; ${1:method} - ${2:description}' + 'Variable': + 'prefix': 'var' + 'body': 'var ${1:name}'