aboutsummaryrefslogtreecommitdiff
path: root/parser/parser_tracing.go
diff options
context:
space:
mode:
Diffstat (limited to 'parser/parser_tracing.go')
-rw-r--r--parser/parser_tracing.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/parser/parser_tracing.go b/parser/parser_tracing.go
index bdffbd5..7f1f9e3 100644
--- a/parser/parser_tracing.go
+++ b/parser/parser_tracing.go
@@ -1,3 +1,4 @@
+//go:build ignore
// +build ignore
package parser
@@ -16,11 +17,11 @@ func identLevel() string {
}
func tracePrint(fs string) {
- fmt.Printf("%s%s\n", identLevel(), fs)
+ fmt.Println(identLevel(), fs)
}
-func incIdent() { traceLevel = traceLevel + 1 }
-func decIdent() { traceLevel = traceLevel - 1 }
+func incIdent() { traceLevel++ }
+func decIdent() { traceLevel-- }
func trace(msg string) string {
incIdent()