aboutsummaryrefslogtreecommitdiff
path: root/parser.lua
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2018-12-19 03:02:19 -0800
committerBruce Hill <bruce@bruce-hill.com>2018-12-19 03:02:31 -0800
commit359152da1772ce501609edd8f84b4985ed3e42f2 (patch)
treebd1969365b31b938f1c5695c57ed38ada5d0eee1 /parser.lua
parent21a1121da65bf889547b5bebf26b71c71aad7ad4 (diff)
Added parentheses to prevent stupid breakage.
Diffstat (limited to 'parser.lua')
-rw-r--r--parser.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/parser.lua b/parser.lua
index 8cb96ea..523e223 100644
--- a/parser.lua
+++ b/parser.lua
@@ -60,7 +60,7 @@ local peg_tidier = re.compile([[ file <- %nl* {~ (captured_def/line) (%nl+ (c
captured_def <-
({ident} (" "*) "(" {ident} ")" (" "*) "<-" {[^%nl]* (%nl+ " "+ [^%nl]*)*}) ->
"%1 <- ({| {:type:''->'%2':} {:start:{}:}
- %3
+ (%3)
{:stop:{}:} |} %%userdata) -> Tree"
]])
local make_parser