bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#22717: 25.0.91; sh-mode indentation bug with opening parens at the b


From: Noam Postavsky
Subject: bug#22717: 25.0.91; sh-mode indentation bug with opening parens at the beginnings of lines, and apostrophes
Date: Thu, 20 Jun 2019 07:21:56 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux)

tags 22717 fixed
close 22717 27.1
quit

Phil Sainty <psainty@orcon.net.nz> writes:

> I've come up with the following test case:
>
> #!/bin/sh
> echo "
> (" # Opening parenthesis at the beginning of a line
>
> if true; then
>     # Here's an apostrophe
> fi # ...and now this will be indented -- aligned with the apostrophe
>
>
> If you auto-indent that, the final line gets indented to align
> with the column containing the apostrophe in the preceding comment.

This is fixed in master, probably by [1: 14b9558752].

[1: 14b9558752]: 2017-12-12 23:03:00 -0500
  * src/syntax.c (find_defun_start): Use syntax-ppss
  
https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=14b95587520959c5b54356547a0a69932a9bb480





reply via email to

[Prev in Thread] Current Thread [Next in Thread]