* 4.3.11. Consume a name * https://www.w3.org/TR/css-syntax-3/#consume-a-name
()
| 435 | * https://www.w3.org/TR/css-syntax-3/#consume-a-name |
| 436 | */ |
| 437 | private consumeAName(): InputTokenObject { |
| 438 | nameRegEx.lastIndex = this.nextInputCodePointIndex; |
| 439 | const result = nameRegEx.exec(this.text); |
| 440 | if (!result) { |
| 441 | return null; |
| 442 | } |
| 443 | this.nextInputCodePointIndex = nameRegEx.lastIndex; |
| 444 | |
| 445 | // TODO: Perform string escaping. |
| 446 | return { type: TokenObjectType.ident, text: result[0] }; |
| 447 | } |
| 448 | |
| 449 | private consumeAtKeyword(): InputTokenObject { |
| 450 | this.nextInputCodePointIndex++; |
no outgoing calls
no test coverage detected