coffee-script-tmbundle icon indicating copy to clipboard operation
coffee-script-tmbundle copied to clipboard

Fixes #131. Change scope type to text.

Open tad-lispy opened this issue 12 years ago • 2 comments

It seems Sublime Text 2 have a habit of pushing subsequent lines of wrapped code one indentation level to the right. It does not do this with text (as opposed to code). Whether scope is considered code or text depends on scopeName property. If it starts with source. - then it's code. If it starts with text. - then it's text. Probably it would be better to make prose text and code - code, but I don't know how to.

I think this change makes sense in a way. In literate programming we focus on prose. So it's more text then source... Kinda :)

EDIT: Sorry. I thought if I name my commit like that it will be attached to #131 . Can this be merged with it?

tad-lispy avatar Apr 08 '13 17:04 tad-lispy

Thanks for doing the research. Before I merge -- are you sure that this is the only way to get the desired non-indented behavior?

jashkenas avatar Apr 09 '13 02:04 jashkenas

Honestly I am not. Everything I know about syntaxes in ST2 I've learned while trying to resolve this issue. I've red this document about syntax definitions. It seems to mainly address ST1, but some info is relevant to 2 as well. Since your last comment I've spent some extra time and found nothing new. Also I am not sure if there will be any side effects with this change. I've changed this in my setup and everything seems to work.

tad-lispy avatar Apr 13 '13 16:04 tad-lispy