Open xahon opened 7 years ago
js2-mode
doesn't work well with mmm-mode
. In particular, it fontifies the strings contents outside of the font-lock framework.
You can try this with js-mode
as the primary mode, for comparison.
@dgutov js-mode not working
rjsx-mode
too
jsx-mode
is based on js2-mode
. js-mode
works here.
@dgutov can you share your config i could test?
I've tried to make
styled-components
syntax inside.js[x]?
fileHere is my function for that
It should look like that (css syntax inside js file between "styled.[^`]`" and "\s`")
Tried to set
less-css-mode
andsass-mode
instead ofcss-mode
Tried to use not only css props, but css classes.someclass { ... }
Regex is working well according toregex-builder
Tried to swap front and back according to #72 issue I'm sure thatjs2-jsx-mode
is enabled in buffer and tried to change torjsx-mode