Skip to content

Commit 7142584

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 755b6ae commit 7142584

File tree

2 files changed

+2
-23
lines changed

2 files changed

+2
-23
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 goyacc -v parser.output -o parser.go parser.y
1+
//go:generate goyacc -l -v parser.output -o parser.go parser.y
22

33
package filter
44

internal/filter/parser.go

Lines changed: 1 addition & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)