Home Download Buy Blog Forum Support

Auto indent bug with strings containing parens

Auto indent bug with strings containing parens

Postby madevilgenius on Fri Mar 08, 2013 6:28 pm

Consider the following Ruby code:

Code: Select all
puts "(barf"


If you hit Enter at the end of this line, ST will indent the next line:

Code: Select all
puts "(barf"
  |


In other words, it interprets the opening parenthesis inside the string as being meaningful to the indentation. The bug only seems to affect opening parantheses.
madevilgenius
 
Posts: 19
Joined: Tue Oct 11, 2011 6:51 pm

Re: Auto indent bug with strings containing parens

Postby mrb12321 on Thu Dec 12, 2013 4:15 pm

I was able to work around this bug with:
"smart_indent": false,
mrb12321
 
Posts: 1
Joined: Thu Dec 12, 2013 3:40 pm


Return to Technical Support

Who is online

Users browsing this forum: Google [Bot] and 19 guests