billymoon/Stylus

'Enter' new line broken

Arrogance opened this issue · 6 comments

Related #12

With the last revision, the enter key doesn't work with stylus syntax enabled. Reverted to old version of " Default.sublime-keymap" and it works.

Please try to remove the package. Restart Sublime and add it again. If that doesn't help please let me know

@grassator Thank you, that worked for me

Please try to remove the package. Restart Sublime and add it again. If that doesn't help please let me know

I'm having the same issue, reinstalled as you mentioned but still the same.
SHIFT + ENTER works.

@matteocontrini could you please give me exact Sublime version and the sequence of events that causes the failure?

Build 3083.
But it's strange because when writing in a .styl file, everything works fine. But in my case I need the Stylus syntax inside a .vue file, which is highlighted by vue-syntax-highlight, which uses Sublime Stylus (this repo) for highlighting the syntax. And with this configuration I'm having issues. Specifically, pressing enter at the end of the line doesn't do anything, and this happens always. Enter works when the cursor is at the beginning of the line.

Ok, now this makes a bit more sense and is probably somehow connected to that language nesting and scopes, although I'm not sure how exactly. Please create a separate issue for this and I will take a look when I have some time, hopefully this week.