aboutsummaryrefslogtreecommitdiff
path: root/driver/semantic_action_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'driver/semantic_action_test.go')
-rw-r--r--driver/semantic_action_test.go21
1 files changed, 14 insertions, 7 deletions
diff --git a/driver/semantic_action_test.go b/driver/semantic_action_test.go
index 791b5f0..f9708b7 100644
--- a/driver/semantic_action_test.go
+++ b/driver/semantic_action_test.go
@@ -59,10 +59,14 @@ elem
: char char char
;
-ws: "[\u{0009}\u{0020}]+" #skip;
-semicolon: ';';
-star: '*';
-char: "[a-z]";
+ws #skip
+ : "[\u{0009}\u{0020}]+";
+semicolon
+ : ';';
+star
+ : '*';
+char
+ : "[a-z]";
`
specSrcWithoutErrorProd := `
@@ -76,9 +80,12 @@ elem
: char char char
;
-ws: "[\u{0009}\u{0020}]+" #skip;
-semicolon: ';';
-char: "[a-z]";
+ws #skip
+ : "[\u{0009}\u{0020}]+";
+semicolon
+ : ';';
+char
+ : "[a-z]";
`
tests := []struct {