aboutsummaryrefslogtreecommitdiff
path: root/testerrors.lua
diff options
context:
space:
mode:
Diffstat (limited to 'testerrors.lua')
-rw-r--r--testerrors.lua8
1 files changed, 8 insertions, 0 deletions
diff --git a/testerrors.lua b/testerrors.lua
index 505d288..d37cc0a 100644
--- a/testerrors.lua
+++ b/testerrors.lua
@@ -591,6 +591,8 @@ testerror([[
591 A <- 'A' /{'lab'} B / ! 591 A <- 'A' /{'lab'} B / !
592 592
593 B <- %{1, 2 3} 'b' / '6' & / 'B' 593 B <- %{1, 2 3} 'b' / '6' & / 'B'
594
595 C <- A^B
594]],[[ 596]],[[
595L1:C14: expected at least one label after '{' 597L1:C14: expected at least one label after '{'
596 A <- 'A' /{'lab'} B / ! 598 A <- 'A' /{'lab'} B / !
@@ -601,6 +603,12 @@ L1:C26: expected a pattern after '!'
601L3:C15: missing closing '}' 603L3:C15: missing closing '}'
602 B <- %{1, 2 3} 'b' / '6' & / 'B' 604 B <- %{1, 2 3} 'b' / '6' & / 'B'
603 ^ 605 ^
606L3:C29: expected a pattern after '&'
607 B <- %{1, 2 3} 'b' / '6' & / 'B'
608 ^
609L5:C10: expected a number after '^', '+' or '-' (no space)
610 C <- A^B
611 ^
604]]) 612]])
605 613
606 614