Skip to content

Commit 48407c8

Browse files
authored
Add user-defined type function to grammar (#33)
1 parent 4439109 commit 48407c8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

_pages/grammar.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ stat = varlist '=' explist |
2222
attributes 'function' funcname funcbody |
2323
attributes 'local' 'function' NAME funcbody |
2424
'local' bindinglist ['=' explist] |
25-
['export'] 'type' NAME ['<' GenericTypeListWithDefaults '>'] '=' Type
25+
['export'] 'type' NAME ['<' GenericTypeListWithDefaults '>'] '=' Type |
26+
['export'] 'type' 'function' NAME funcbody
2627
2728
laststat = 'return' [explist] | 'break' | 'continue'
2829

0 commit comments

Comments
 (0)