[PATCH 2 of 2] byteify-strings: fix misalignment with multi-line parenthesis

Yuya Nishihara yuya at tcha.org
Mon Aug 5 09:01:52 EDT 2019


On Sun, 04 Aug 2019 22:21:46 +0200, Raphaël Gomès wrote:
> # HG changeset patch
> # User Raphaël Gomès <rgomes at octobus.net>
> # Date 1564949666 -7200
> #      Sun Aug 04 22:14:26 2019 +0200
> # Node ID 3d9a2bb7d210b8fc092894fec7017faad9653496
> # Parent  6a81e45cb9f295adff1e8008a67db48b971ccc18
> # EXP-Topic byteify-strings
> byteify-strings: fix misalignment with multi-line parenthesis

Queued, thanks.

>          # Remember the last paren position.
>          if _isop(i, '(', '[', '{'):
> -            parens.append(t.end + (coloffset + coldelta,))
> +            parens.append(t.end + (coloffset + coldelta, tokens[i + 1].type))

Fixed the initial parens[0].


More information about the Mercurial-devel mailing list