Skip to content

Commit 8080346

Browse files
committed
feat: fn[]() support
1 parent 1e3a2a1 commit 8080346

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

syntax/jule.vim

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,9 @@ syntax keyword juleStorage static const mut pub self
2525
syntax keyword juleConstant true false nil
2626

2727
" function names
28-
" regex: a word followed by `(`, but not including `(` in the match
28+
" regex: a word followed by either `(` or `[`, but not including `(` or `[`
2929
syntax match juleFunction "\<\k\+\ze("
30+
syntax match juleFunction "\<\k\+\ze\["
3031

3132
" numbers
3233
" regex: a sequence of digits, possibly separated by `_` (e.g. `123`, `123_456`)

0 commit comments

Comments
 (0)