Skip to content

Commit

Permalink
This adds babel support to html scripts
Browse files Browse the repository at this point in the history
This line makes highlighting work for Babel scripts so you can work with React etc in html files if you want to.
  • Loading branch information
phocks committed May 16, 2017
1 parent 9cc5e26 commit a723f08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Syntaxes/HTML.plist
Expand Up @@ -537,7 +537,7 @@
<key>begin</key>
<string>\G</string>
<key>end</key>
<string>(?i:(?=/?&gt;|type(?=[\s=])(?!\s*=\s*('|"|)(text/(javascript|ecmascript)|application/((x-)?javascript|ecmascript)|module)[\s"'&gt;])))</string>
<string>(?i:(?=/?&gt;|type(?=[\s=])(?!\s*=\s*('|"|)(text/(javascript|ecmascript|babel)|application/((x-)?javascript|ecmascript|babel)|module)[\s"'&gt;])))</string>
<key>name</key>
<string>meta.tag.metadata.script.html</string>
<key>patterns</key>
Expand Down

0 comments on commit a723f08

Please sign in to comment.