From: Juan-Leon Lahoz Garcia <juanleon1@gmail.com>
Subject: Patch to perl-mode (intentation problem)
Date: Mon, 3 Jan 2005 12:34:32 -0600 [thread overview]
Message-ID: <200501031834.j03IYW61018691@il06exr06.mot.com> (raw)
Hi.
It seems like perl mode has a small bug when indenting. It does:
if ($foo) {
aaa::aaa();
bbb::bbb();
}
instead of
if ($foo) {
aaa::aaa();
bbb::bbb();
}
perl-mode thinks that aaa::aaa() is a label (only when the X::Y
contruct is right after a opening brace)
I have tried plain emacs 21.3 and same emacs with latest perl-mode
from CVS.
Following patch solves the problem for me (both perl-mode versions,
the one in 21.3 and the latest).
Maybe somebody in this list can review it and apply if is OK.
Regards
juanleon
--- perl-mode.el Tue Dec 28 10:13:50 2004
+++ perl-mode.el.new Tue Dec 28 10:21:40 2004
@@ -769,7 +769,7 @@
(skip-chars-forward " \t\f\n")
(cond ((looking-at ";?#")
(forward-line 1) t)
- ((looking-at "\\(\\w\\|\\s_\\)+:")
+ ((looking-at "\\(\\w\\|\\s_\\)+:[^:]")
(save-excursion
(end-of-line)
(setq colon-line-end (point)))
next reply other threads:[~2005-01-03 18:34 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-03 18:34 Juan-Leon Lahoz Garcia [this message]
2005-01-03 20:46 ` Patch to perl-mode (intentation problem) Stefan Monnier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200501031834.j03IYW61018691@il06exr06.mot.com \
--to=juanleon1@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.