( tokens: CodeEditorSyntaxToken[], text: string, kind: CodeEditorSyntaxTokenKind, )
| 790 | } |
| 791 | |
| 792 | function pushToken( |
| 793 | tokens: CodeEditorSyntaxToken[], |
| 794 | text: string, |
| 795 | kind: CodeEditorSyntaxTokenKind, |
| 796 | ): void { |
| 797 | if (text.length === 0) return; |
| 798 | tokens.push(Object.freeze({ text, kind })); |
| 799 | } |
| 800 | |
| 801 | function isWhitespace(ch: string): boolean { |
| 802 | return ch === " " || ch === "\t"; |
no test coverage detected