Skip to content

Commit

Permalink
refactor: add extra test
Browse files Browse the repository at this point in the history
  • Loading branch information
a-h committed Jun 27, 2024
1 parent df80639 commit 2a7278c
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.2.728
0.2.729
28 changes: 28 additions & 0 deletions cmd/templ/imports/testdata/commentsbeforepackage.txtar
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
-- fmt_templ.templ --
// Comments before.
/*
Some more comments
*/
package test

templ test() {
<div>Hello</div>
}

// Comment on variable or function.
var x = fmt.Sprintf("Hello")
-- fmt_templ.templ --
// Comments before.
/*
Some more comments
*/
package test

import "fmt"

templ test() {
<div>Hello</div>
}

// Comment on variable or function.
var x = fmt.Sprintf("Hello")

0 comments on commit 2a7278c

Please sign in to comment.