mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-30 22:39:58 +02:00
@@ -548,6 +548,16 @@ var lexPosTests = []lexTest{
|
||||
{itemRightDelim, 11, "}}", 2},
|
||||
{itemEOF, 13, "", 2},
|
||||
}},
|
||||
{"longcomment", "{{/*\n*/}}\n{{undefinedFunction \"test\"}}", []item{
|
||||
{itemComment, 2, "/*\n*/", 1},
|
||||
{itemText, 9, "\n", 2},
|
||||
{itemLeftDelim, 10, "{{", 3},
|
||||
{itemIdentifier, 12, "undefinedFunction", 3},
|
||||
{itemSpace, 29, " ", 3},
|
||||
{itemString, 30, "\"test\"", 3},
|
||||
{itemRightDelim, 36, "}}", 3},
|
||||
{itemEOF, 38, "", 3},
|
||||
}},
|
||||
}
|
||||
|
||||
// The other tests don't check position, to make the test cases easier to construct.
|
||||
|
Reference in New Issue
Block a user