You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
Checked that there is not already an Atom package that provides the described functionality: https://atom.io/packages
Description
Using @each SCSS directive inside a .vue file breaks subsequent syntax highlighting. Digging through grammars/scss.cson it seems like 'end': '\\s*((?=}))' is incorrect.
Replacing the line with 'end': '\\s*(?={)' as in the similar @if-directive fixes the issue.
Prerequisites
Description
Using
@eachSCSS directive inside a .vue file breaks subsequent syntax highlighting. Digging throughgrammars/scss.csonit seems like'end': '\\s*((?=}))'is incorrect.Replacing the line with
'end': '\\s*(?={)'as in the similar@if-directive fixes the issue.See the following branch in our fork for a fix that solves the issue https://github.com/internetfriendsforever/language-sass/tree/each-directive-fix
Commit is here internetfriendsforever@8e56bc8
Steps to Reproduce
@eachdirective inExpected behavior:
Normal syntax highlighting
Actual behavior:
Syntax highlighting after
@eachdirective is broken. Affects both SCSS within the<style>block and the remaining code in the document.Reproduces how often:
100% of the time for
<style lang="scss">blocks inside a.vuefile0% of the time in a pure
.scssfile.Versions
Running Mac OS 10.14.6
Additional Information