mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-28 22:19:59 +02:00
@@ -108,13 +108,8 @@ func (t *Tree) nextNonSpace() (token item) {
|
||||
}
|
||||
|
||||
// peekNonSpace returns but does not consume the next non-space token.
|
||||
func (t *Tree) peekNonSpace() (token item) {
|
||||
for {
|
||||
token = t.next()
|
||||
if token.typ != itemSpace {
|
||||
break
|
||||
}
|
||||
}
|
||||
func (t *Tree) peekNonSpace() item {
|
||||
token := t.nextNonSpace()
|
||||
t.backup()
|
||||
return token
|
||||
}
|
||||
|
Reference in New Issue
Block a user