aboutsummaryrefslogtreecommitdiff
path: root/grammars/lua.bp
diff options
context:
space:
mode:
Diffstat (limited to 'grammars/lua.bp')
-rw-r--r--grammars/lua.bp6
1 files changed, 3 insertions, 3 deletions
diff --git a/grammars/lua.bp b/grammars/lua.bp
index e8c9ba8..5554167 100644
--- a/grammars/lua.bp
+++ b/grammars/lua.bp
@@ -14,6 +14,6 @@ keyword: |(
"function" / "goto" / "if" / "in" / "local" / "nil" / "not" / "or" /
"repeat" / "return" / "then" / "true" / "until" / "while"
)|
-function-def: |"function"|[_id (*(`.id)[`:id])]_ parens
-block: function / |("do"/"then")| ..%(comment/string/block/\n) (|"end"|)
-function: function-def ..%(comment/string/block/\n) (|"end"|)
+function-def: {function}[_id (*(`.id)[`:id])]_ parens
+block: function / ({do}/{then}) ..%(comment/string/block/\n) {end}
+function: function-def ..%(comment/string/block/\n) {end}