divinites / gissues

A sublime text plug-in to manage GitHub repo issues :fire:
11 stars 2 forks source link

[Feature request] Syntax highlighting in <script type="text/babel"> for HTML support #98

Closed Kristinita closed 7 years ago

Kristinita commented 7 years ago

Summary

It would be nice, if in JavaScript (Babel) syntax will be added support syntax highlighting for Babel in tag <script></script> for HTML.

Expected behavior

In separate file.

In separate file

Actual behavior

In HTML.

In HTML

Steps to reproduce

In open HTML file I have script:

<script type="text/babel">
  let arr = ["hello", 2]; // let

  let [str, times] = arr; //

  alert( str.repeat(times) );
</script>

Script not highlight for me. I get scope for each place of this script: source.js meta.jsx.js I get each time.

Environment

Sublime Text: Build 3126 Syntax: JavaScript (Babel) into Babel plugin Color scheme: Monokai Phoenix into Babel plugin

Thanks.

Kristinita commented 7 years ago

Sorry, wrong repository.