From 41b83647b03f8f1b45df968a588f40d6cfd364b8 Mon Sep 17 00:00:00 2001 From: Kelvin Sherlock Date: Mon, 25 Sep 2017 21:24:50 -0400 Subject: [PATCH] handle function parameters. --- Syntaxes/mumps.sublime-syntax | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/Syntaxes/mumps.sublime-syntax b/Syntaxes/mumps.sublime-syntax index c2133b2..00a29e2 100644 --- a/Syntaxes/mumps.sublime-syntax +++ b/Syntaxes/mumps.sublime-syntax @@ -18,12 +18,29 @@ contexts: main: - include: comment + - match: '^({{ident}})(\()' + captures: + 1: entity.name.function.mumps + 2: punctuation.section.group.begin.mumps + set: parms + - match: '^{{ident}}\b' - scope: entity.name.function + scope: entity.name.function.mumps + - include: comments - match: '{{ws}}+' set: indent + parms: + - match: \b{{ident}}\b + scope: variable.parameter.function + - match: \n + scope: invalid.illegal + set: main + - match: \) + scope: punctuation.section.group.end.mumps + set: indent + indent: - include: eol - match: ([\. ]*)