From a93220972f8130732c8cd0267c0b14db77ac19ea Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Tue, 11 May 2021 12:38:58 -0700 Subject: Overhaul of |-word boundaries (| is deprecated), performance improvements for repeating matches, tweaks to the logic of word vs. id --- grammars/lua.bp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'grammars/lua.bp') diff --git a/grammars/lua.bp b/grammars/lua.bp index 5554167..6967f1e 100644 --- a/grammars/lua.bp +++ b/grammars/lua.bp @@ -9,11 +9,10 @@ comment: "--" (`[ @eqs=*`= `[ ..%\n (`]eqs`]) / ..$) string: `"..%(`\.) `" / `' ..%(`\.) `' / `[ @eqs=*`= `[ ..%\n (`]eqs`]) table: `{ ..%(table/string/comment/\n) `} -keyword: |( +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 / ({do}/{then}) ..%(comment/string/block/\n) {end} function: function-def ..%(comment/string/block/\n) {end} -- cgit v1.2.3