* `<` — CDO or delim. * @param {string} input input * @param {number} pos position just past `<` * @param {MutableToken} out token to populate * @returns {MutableToken | undefined} the resulting token, or undefined at EOF
(input, pos, out)
| 894 | * @returns {MutableToken | undefined} the resulting token, or undefined at EOF |
| 895 | */ |
| 896 | function consumeLessThan(input, pos, out) { |
| 897 | if ( |
| 898 | input.charCodeAt(pos) === CC_EXCLAMATION && |
| 899 | input.charCodeAt(pos + 1) === CC_HYPHEN_MINUS && |
| 900 | input.charCodeAt(pos + 2) === CC_HYPHEN_MINUS |
| 901 | ) { |
| 902 | return fill(out, TT_CDO, pos - 1, pos + 3); |
| 903 | } |
| 904 | return fill(out, TT_DELIM, pos - 1, pos); |
| 905 | } |
| 906 | |
| 907 | /** |
| 908 | * `@` — at-keyword or delim. |