SublimeText / PackageDev

Tools to ease the creation of snippets, syntax definitions, etc. for Sublime Text.
MIT License
436 stars 83 forks source link

Refine input helpers for sublime-syntax #217

Closed deathaxe closed 5 years ago

deathaxe commented 5 years ago

After some further days of working with, I found some edge cases with my recently proposed key bindings.

  1. Adding a new-line after a : is not a good idea in the variables context. Therefore I'd suggest to limit this function to contexts. The only left key it might be useful with is the file_extensions key. Not sure if it makes sense to add it as well.

  2. The other way round, adding a space after the first : would make sense in the variables context, if it does not yet exist.