Skip to content

Commit

Permalink
handle function parameters.
Browse files Browse the repository at this point in the history
  • Loading branch information
ksherlock committed Sep 26, 2017
1 parent db7348e commit 41b8364
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion Syntaxes/mumps.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -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: ([\. ]*)
Expand Down

0 comments on commit 41b8364

Please sign in to comment.