Skip to content

Commit

Permalink
javascript patch for JSX
Browse files Browse the repository at this point in the history
  • Loading branch information
danvk committed Feb 26, 2015
1 parent 94b7835 commit f6ac341
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/languages/javascript.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ function(hljs) {
hljs.C_LINE_COMMENT_MODE,
hljs.C_BLOCK_COMMENT_MODE,
hljs.REGEXP_MODE,
{ // E4X
begin: /</, end: />;/,
{ // E4X / JSX
begin: /</, end: />\s*[);\]]/,
relevance: 0,
subLanguage: 'xml'
}
Expand Down

0 comments on commit f6ac341

Please sign in to comment.