diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2021-08-01 12:40:27 -0700 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2021-08-01 12:40:27 -0700 |
| commit | 994c9c973e0fd771699c3a5c76bee11f9b744c84 (patch) | |
| tree | 8257c1abe2d18a50a46a1d712eadbd25fd7e4f8b /grammars/lua.bp | |
| parent | cb9b4c40d87480bc794b90c2a36ed0f4c3240d8a (diff) | |
Changed how definitions work
Diffstat (limited to 'grammars/lua.bp')
| -rw-r--r-- | grammars/lua.bp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/grammars/lua.bp b/grammars/lua.bp index 6005514..3d3b862 100644 --- a/grammars/lua.bp +++ b/grammars/lua.bp @@ -9,10 +9,9 @@ comment: "--" (`[ @eqs=*`= `[ ..%\n (`]eqs`]) / ..$) string: `"..%string-escape `" / `' ..%string-escape `' / `[ @eqs=*`= `[ ..%\n (`]eqs`]) table: `{ ..%(table/string/comment/\n) `} -keyword: - "and" / "break" / "do" / "else" / "elseif" / "end" / "false" / "for" / - "function" / "goto" / "if" / "in" / "local" / "nil" / "not" / "or" / - "repeat" / "return" / "then" / "true" / "until" / "while" +keyword: ("and" / "break" / "do" / "else" / "elseif" / "end" / "false" / "for" / + "function" / "goto" / "if" / "in" / "local" / "nil" / "not" / "or" / + "repeat" / "return" / "then" / "true" / "until" / "while") function-def: |"function"|[_id (*(`.id)[`:id])]_ parens block: function / if-block / while-block / for-block / repeat-block / do-block repeat-block: |"repeat"| ..%(comment/string/\n) (|"until"|) |
