From 554f8f39c57d91c1be8724cf4054424c9fb5f151 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Sun, 17 May 2020 08:59:00 +0200 Subject: [PATCH] pkg/ast: print full file name in errors Print full names so that github annotations work. I.e. sys/linux/sys.txt instead of just sys.txt. --- pkg/ast/parser.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/ast/parser.go b/pkg/ast/parser.go index 3f3feda9..025c5dcc 100644 --- a/pkg/ast/parser.go +++ b/pkg/ast/parser.go @@ -67,7 +67,7 @@ func ParseGlob(glob string, errorHandler ErrorHandler) *Description { errorHandler(Pos{}, fmt.Sprintf("failed to read input file: %v", err)) return nil } - desc1 := Parse(data, filepath.Base(f), errorHandler) + desc1 := Parse(data, f, errorHandler) if desc1 == nil { desc = nil }