Skip to content

Commit 41b8364

Browse files
committed
handle function parameters.
1 parent db7348e commit 41b8364

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

Syntaxes/mumps.sublime-syntax

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,29 @@ contexts:
1818
main:
1919
- include: comment
2020

21+
- match: '^({{ident}})(\()'
22+
captures:
23+
1: entity.name.function.mumps
24+
2: punctuation.section.group.begin.mumps
25+
set: parms
26+
2127
- match: '^{{ident}}\b'
22-
scope: entity.name.function
28+
scope: entity.name.function.mumps
29+
2330
- include: comments
2431
- match: '{{ws}}+'
2532
set: indent
2633

34+
parms:
35+
- match: \b{{ident}}\b
36+
scope: variable.parameter.function
37+
- match: \n
38+
scope: invalid.illegal
39+
set: main
40+
- match: \)
41+
scope: punctuation.section.group.end.mumps
42+
set: indent
43+
2744
indent:
2845
- include: eol
2946
- match: ([\. ]*)

0 commit comments

Comments
 (0)