MhMadHamster / vscode-postcss-language

postcss syntax support extension for VSCode
MIT License
34 stars 7 forks source link

Disables Bracket Pair Colorizer for PostCSS files #29

Open argarner opened 6 years ago

argarner commented 6 years ago

Hi mate,

Best postcss highlighter I've found. Though, unfortunately, this extension disables Bracket Pair Colorizer from working within the given PostCSS file.

These are the only language modes I'm aware of that prevent the Bracket Pair Colorizer package from working for a file.

MhMadHamster commented 6 years ago

As far as i can tell, the problem is that in my extension i am providing syntax highlighting based on the language of the current file, so it might be pcss file or css file with postcss selected as a language. Bracket pair colorizer use prism.js for language support, which is know nothing about PostCSS (https://prismjs.com/#languages-list) since it is not really a separate language i guess.

Sorry but i am not sure if i can do anything about this.

argarner commented 6 years ago

Ya no worries; just thought I’d bring it up cause I didn’t see it as a current known issue.

I’ve noticed it doesn’t seem to highlight nested &#id syntax correctly either.

scss highlighting appears to be very accurate, except I’d prefer not to use the scss extension and confuse future devs. I’ll probably be able to set vscode to default to scss highlighting for pcss files or something...

On Tue, 17 Jul 2018 at 20:22, Max Burmagin notifications@github.com wrote:

As far as i can tell, the problem is that in my extension i am providing syntax highlighting based on the language of the current file, so it might be pcss file or css file with postcss selected as a language. Bracket pair colorizer use prism.js for language support, which is know nothing about PostCSS (https://prismjs.com/#languages-list) since it is not really a separate language i guess.

Sorry but i am not sure if i can do anything about this.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/MhMadHamster/vscode-postcss-language/issues/29#issuecomment-405534437, or mute the thread https://github.com/notifications/unsubscribe-auth/AKj4PejX4O5lH1unWQGImeGbrJfWONEMks5uHbrKgaJpZM4VQH68 .