Skip to content

Commit 3808c9a

Browse files
committed
Merge pull request #10 from scorredoira/master
Allow subfolders in preprocessor line directives.
2 parents ad4c1a8 + f3c5e62 commit 3808c9a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

template.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import (
99
"go/token"
1010
"io"
1111
"os"
12-
"path/filepath"
1312
)
1413

1514
// Template represents an entire Ego template.
@@ -178,7 +177,7 @@ type Pos struct {
178177

179178
func (p *Pos) write(buf *bytes.Buffer) {
180179
if p != nil && p.Path != "" && p.LineNo > 0 {
181-
fmt.Fprintf(buf, "//line %s:%d\n", filepath.Base(p.Path), p.LineNo)
180+
fmt.Fprintf(buf, "//line %s:%d\n", p.Path, p.LineNo)
182181
}
183182
}
184183

0 commit comments

Comments
 (0)