justinmahar / SublimeCSAutocompletePlus

CoffeeScript autocompletions and more!
172 stars 12 forks source link

Allow types to wrap lines #28

Open Iristyle opened 11 years ago

Iristyle commented 11 years ago

Assume a simple example against jQuery that works perfectly fine.

$('#id').add('<div></div>')

Now let's try to break it up, so that a . continues against the type. This sort of thing can be common for fluent APIs like jQuery.

$('#id')
  .add('<div></div>')

Unfortunately the second line doesn't consider the type of the returned object from the previous line. I think a simple solution would be to handle parsing lines that start with . specially.

To make this work even better #21 would need to be implemented.