diff options
| author | Mestery <mestery@pm.me> | 2021-07-18 10:36:31 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-07-18 10:36:31 +0200 |
| commit | fe572dcec9182f998a1961bc99531f39aa88f041 (patch) | |
| tree | f6800606aef60aefd9cbec26ad481b69f71ea97f /tests/examplefiles/ts | |
| parent | 6d9b79eb540dd6694b5d3b9903dcebec6b39be95 (diff) | |
| download | pygments-git-fe572dcec9182f998a1961bc99531f39aa88f041.tar.gz | |
Update javascript lexer (#1814)
* make ts extends js lexer
* add regex's d flag for js lexers
cf. https://v8.dev/features/regexp-match-indices
* update js builtins, operators, exceptions
* fixup! update js builtins, operators, exceptions
* add typescript override keywork
* Update _mapping.py
Diffstat (limited to 'tests/examplefiles/ts')
| -rw-r--r-- | tests/examplefiles/ts/typescript_example.output | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/examplefiles/ts/typescript_example.output b/tests/examplefiles/ts/typescript_example.output index a29bed22..93d35fa8 100644 --- a/tests/examplefiles/ts/typescript_example.output +++ b/tests/examplefiles/ts/typescript_example.output @@ -205,7 +205,7 @@ ' ' Text '=' Operator ' ' Text -'new' Keyword +'new' Operator.Word ' ' Text 'Snake' Name.Other '(' Punctuation @@ -221,7 +221,7 @@ ' ' Text '=' Operator ' ' Text -'new' Keyword +'new' Operator.Word ' ' Text 'Horse' Name.Other '(' Punctuation |
