Skip to content

Commit d454ffe

Browse files
committed
Disable //line directives for goyacc generated codes
Otherwise the dwarf information of that parser will get messed up - incomplete and one will not be able to step into that source code using a debugger (tested it using delve).
1 parent 07bcd5c commit d454ffe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/filter/lexer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//go:generate go tool goyacc -v parser.output -o parser.go parser.y
1+
//go:generate go tool goyacc -l -v parser.output -o parser.go parser.y
22

33
package filter
44

0 commit comments

Comments
 (0)