Skip to content

Commit

Permalink
Disable //line directives for goyacc generated codes
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
yhabteab committed Aug 13, 2024
1 parent 755b6ae commit 7142584
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 23 deletions.
2 changes: 1 addition & 1 deletion internal/filter/lexer.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//go:generate goyacc -v parser.output -o parser.go parser.y
//go:generate goyacc -l -v parser.output -o parser.go parser.y

package filter

Expand Down
23 changes: 1 addition & 22 deletions internal/filter/parser.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 7142584

Please sign in to comment.