| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -525,7 +525,7 @@ class TapLexer { | |||
| 525 | 525 | } | |
| 526 | 526 | ||
| 527 | 527 | #isEscapeSymbol(char) { | |
| 528 | - return char === '\\'; | ||
| 528 | + return char === '\\' || char === '\x1b'; | ||
| 529 | 529 | } | |
| 530 | 530 | ||
| 531 | 531 | #isYamlStartSymbol(char) { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -480,3 +480,15 @@ ok 1 | |||
| 480 | 480 | assert.strictEqual(tokens[index].value, token.value); | |
| 481 | 481 | }); | |
| 482 | 482 | } | |
| 483 | + | ||
| 484 | + { | ||
| 485 | + const tokens = TAPLexer('\x1b'); | ||
| 486 | + | ||
| 487 | + [ | ||
| 488 | + { kind: TokenKind.ESCAPE, value: '\x1b' }, | ||
| 489 | + { kind: TokenKind.EOL, value: '' }, | ||
| 490 | + ].forEach((token, index) => { | ||
| 491 | + assert.strictEqual(tokens[index].kind, token.kind); | ||
| 492 | + assert.strictEqual(tokens[index].value, token.value); | ||
| 493 | + }); | ||
| 494 | + } | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments