summaryrefslogtreecommitdiff
path: root/parser/parse_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'parser/parse_test.go')
-rw-r--r--parser/parse_test.go25
1 files changed, 25 insertions, 0 deletions
diff --git a/parser/parse_test.go b/parser/parse_test.go
index ffc0f53..4559acf 100644
--- a/parser/parse_test.go
+++ b/parser/parse_test.go
@@ -56,6 +56,31 @@ var GoScanner = &scanner.Scanner{
"/*": scanner.CharStr,
"//": scanner.CharStr | scanner.ExcludeEnd | scanner.EosValidEnd,
},
+ SkipSemi: map[string]bool{
+ "++": true,
+ "--": true,
+ "case": true,
+ "chan": true,
+ "const": true,
+ "default": true,
+ "defer": true,
+ "else": true,
+ "for": true,
+ "func": true,
+ "go": true,
+ "goto": true,
+ "if": true,
+ "import": true,
+ "interface": true,
+ "map": true,
+ "package": true,
+ "range": true,
+ "select": true,
+ "struct": true,
+ "switch": true,
+ "type": true,
+ "var": true,
+ },
}
var GoParser = &Parser{