()
| 104 | } |
| 105 | |
| 106 | func (tk *Token) IsPathExtraDelim() bool { |
| 107 | return tk.Tok == token.SUB || tk.Tok == token.ASSIGN || tk.Tok == token.REM || (tk.Tok == token.ILLEGAL && (tk.Str == "?" || tk.Str == "#")) |
| 108 | } |
| 109 | |
| 110 | // IsWord returns true if the token is some kind of word-like entity, |
| 111 | // including IDENT, STRING, CHAR, or one of the Go keywords. |