Identifier tokens: word or dash sequences
()
| 59 | |
| 60 | /** Identifier tokens: word or dash sequences */ |
| 61 | private ident(): IdentToken | undefined { |
| 62 | const m = /^([\w-]+) */.exec(this.str); |
| 63 | if (!m) return; |
| 64 | this.skip(m); |
| 65 | return { type: 'ident', string: m[1] }; |
| 66 | } |
| 67 | |
| 68 | /** Integer tokens, possibly with unit */ |
| 69 | private int(): NumberToken | undefined { |