billymoon / Stylus

Stylus Package for Sublime Text 2 / 3
Other
129 stars 31 forks source link

Enter key doesn't create a new line #66

Closed matteocontrini closed 8 years ago

matteocontrini commented 8 years ago

Related to #43

When using the Stylus syntax highlighter nested inside a .vue file, the enter key with the cursor placed at the end of a Stylus syntax line has no effect. The syntax for .vue files is provided by vue-syntax-highlight.

When it works:

<style lang="stylus">
a
    color: black

</style>

<template>

</template>

When it doesn't work:

<template>

</template>

<style lang="stylus">
a
    color: black

</style>

The issue appears in the second example when placing the cursor after black and pressing enter.

If you think the issue is not related to this package but to vue-syntax-highlight, I'll report it there :)

matteocontrini commented 8 years ago

Oh it's been already reported there as well. https://github.com/vuejs/vue-syntax-highlight/issues/8

matteocontrini commented 8 years ago

Fixed in the other package.