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: ([\. ]*)