davidrios / pug-tmbundle

A comprehensive textmate / sublime text bundle for the Pug (formerly Jade) template language.
https://github.com/davidrios/pug-tmbundle
MIT License
48 stars 20 forks source link

The highlighting breaks with Sublime 3170 #22

Closed bbalban closed 1 year ago

bbalban commented 6 years ago

Apparently they introduced a lot of syntax related changes.

omggga commented 6 years ago

Error loading scope:source.sass: Unable to find syntax file for scope source.sass in Packages/Pug/Syntaxes/Pug.tmLanguage Error loading scope:source.less: Unable to find syntax file for scope source.less in Packages/Pug/Syntaxes/Pug.tmLanguage

JohnHarrison90 commented 6 years ago

Is this plugin still maintained?

cristianl commented 6 years ago

This is directly related to changes made to the built-in JavaScript language package, it's not due to changes in Core. If you disable the JavaScript package, highlighting of non-JS blocks works.

Temporary (hacky) workarounds:

anhcao142 commented 6 years ago

My (temporary) solution is set the default syntax for pug (jade) file using pug (python) syntax.

screen shot 2018-05-16 at 11 19 16 pm
Soviut commented 6 years ago

@cristianl 's suggestion worked. The steps are

ded commented 6 years ago

@Soviut that worked great! Thanks — One thing to note is that .js files get set to Plain Text and need to be switched to use Set Syntax: Babel (JavaScript) after following your steps.

bbalban commented 4 years ago

@cristianl 's suggestion worked. The steps are

  • Ctrl + Shift + P` (Tools > Command Palette)
  • type disable package
  • type javascript
  • Ctrl + Shift + P` (Tools > Command Palette)
  • type install package
  • type babel

thank you this saved me a lot of hassle. it worked!