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

allow module type javascript block syntax #31

Closed csvn closed 1 year ago

csvn commented 5 years ago

I couldn't figure out how to test the change with the files in this repository, but I tried copying the change into C:\Users\<user>\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\pug\syntaxes\pug.tmLanguage.json then restarting VSCode. It seemed to be working well as far as I can see.

Let me know if I missed something 😀

Fixes #30

aakoch commented 3 years ago

👍🏼 I could use this.

I'm on a Mac and can't find where to put a copy of this, so I just updated the app contents at: /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/pug/syntaxes/pug.tmLanguage.json

I tried it out and works for me.

@csvn , did you see the file as it is packaged with VS Code? At the beginning of the the file it states:

This file has been converted from https://github.com/davidrios/pug-tmbundle/blob/master/Syntaxes/Pug.JSON-tmLanguage If you want to provide a fix or improvement, please create a pull request against the original repository. Once accepted there, we are happy to receive an update request.

It looks like this project is abandoned, so what do the developers of VS Code do in this case?

csvn commented 3 years ago

@aakoch indeed, I originally opened an issue on VSCode's repository, but it was transferred over and opened as #30 here. I'm not sure either what to do either. I'm not using Pug a lot right now, so I just left this lying here 😅

eevleevs commented 1 year ago

I could also use this