[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#15089: awk-mode indentation of line after /= statement with?comment
From: |
Alan Mackenzie |
Subject: |
bug#15089: awk-mode indentation of line after /= statement with?comment |
Date: |
Thu, 15 Aug 2013 16:39:06 +0000 (UTC) |
User-agent: |
tin/1.9.6-20101126 ("Burnside") (UNIX) (FreeBSD/8.4-RELEASE (amd64)) |
Glenn Morris <rgm@gnu.org> wrote:
> Package: emacs,cc-mode
> Version: 24.3
> Severity: minor
> emacs -Q foo.awk
> Enter buffer contents:
> #!/usr/bin/gawk -f
> BEGIN {
> x = 4
> x /= 2 # comment
> y = 3
> print x, y
> }
> Use TAB to indent each line. The "y =" line is indented too much.
> No such problem with +=, -=, etc; only with /=. And only if a comment
> after if (actually, only if whitespace after "/= 2", it seems).
Yes. The function `c-awk-at-vsemi-p' which detects being "at a virtual
semicolon" is too simplistically written, and it is mistaking the "/" for
an opening regexp delimiter.
I'll get it fixed.
--
Alan Mackenzie (Nuremberg, Germany).