Skip to content

v0.4.3

Choose a tag to compare

@jeanpaulsio jeanpaulsio released this 27 Mar 14:39
· 2 commits to main since this release
68ce567

Fixed

  • Trailing comma inside delimiters — Pressing Enter after a line ending with a trailing comma inside {}, [], or () no longer adds an extra indent level. Added delimiter-depth detection so the continuation-indent logic defers to delimitedIndent inside brackets.
  • String interpolation false positive — The continuation regex's trailing-comment capture (#.*)?$ was matching #{interpolation} inside strings as a comment, causing lines like "Hello, #{@name}!" to be treated as trailing-comma continuations. Fixed by excluding #{ from the comment pattern.

Added

  • 14 new indent test cases (section 33 + unskipped 28b) covering hashes, arrays, method args, nested constructs, bare call continuations, and interpolated strings

Full Changelog: v0.4.2...v0.4.3