Skip to content

Commit e9b6c64

Browse files
committed
Remove E4X/JSX support from TypeScript for now.
The relevant discussion is in #878. Removing this unbreaks type casting syntax. Future TypeScript will support JSX and have a different casting syntax but not highlighting the former is still a better failure mode than breaking the latter.
1 parent 558973a commit e9b6c64

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/languages/typescript.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,7 @@ function(hljs) {
5252
contains: [
5353
hljs.C_LINE_COMMENT_MODE,
5454
hljs.C_BLOCK_COMMENT_MODE,
55-
hljs.REGEXP_MODE,
56-
{ // E4X
57-
begin: /</, end: />;/,
58-
relevance: 0,
59-
subLanguage: 'xml'
60-
}
55+
hljs.REGEXP_MODE
6156
],
6257
relevance: 0
6358
},

0 commit comments

Comments
 (0)