Skip to content

Commit

Permalink
Remove E4X/JSX support from TypeScript for now.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
isagalaev committed Jul 1, 2015
1 parent 558973a commit e9b6c64
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/languages/typescript.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,7 @@ function(hljs) {
contains: [
hljs.C_LINE_COMMENT_MODE,
hljs.C_BLOCK_COMMENT_MODE,
hljs.REGEXP_MODE,
{ // E4X
begin: /</, end: />;/,
relevance: 0,
subLanguage: 'xml'
}
hljs.REGEXP_MODE
],
relevance: 0
},
Expand Down

0 comments on commit e9b6c64

Please sign in to comment.