(tok Token)
| 169 | } |
| 170 | |
| 171 | func tokenOpensFlushHeredoc(tok Token) bool { |
| 172 | if tok.Type != TokenOHeredoc { |
| 173 | return false |
| 174 | } |
| 175 | return bytes.HasPrefix(tok.Bytes, []byte{'<', '<', '-'}) |
| 176 | } |
| 177 | |
| 178 | // checkInvalidTokens does a simple pass across the given tokens and generates |
| 179 | // diagnostics for tokens that should _never_ appear in HCL source. This |