Dan Nicolaescu
2d5590e0a3
* progmodes/perl-mode.el (perl-continued-statement-offset)
...
(perl-continued-brace-offset, perl-brace-offset)
(perl-brace-imaginary-offset, perl-label-offset):
* progmodes/cperl-mode.el (cperl-brace-offset)
(cperl-continued-brace-offset, cperl-label-offset)
(cperl-continued-statement-offset)
(cperl-extra-newline-before-brace, cperl-merge-trailing-else): Add
safe-local-variable properties.
2007-12-09 19:19:46 +00:00
Stefan Monnier
a0e3c626e8
(perl-font-lock-syntactic-keywords): Don't match "sub { (...) ... }".
2007-11-30 19:21:33 +00:00
Dan Nicolaescu
f152a8982d
* progmodes/cperl-mode.el (cperl-indent-level): Autoload the
...
safe-local-variable setting.
* progmodes/perl-mode.el (perl-indent-level): Likewise.
2007-08-25 21:29:48 +00:00
Stefan Monnier
ed0e2ad11b
(perl-font-lock-syntactic-keywords): Correctly match / regexp matchers
...
as first char on a line when fontifying only that line.
2007-08-16 14:20:37 +00:00
Glenn Morris
1a484753b2
Switch license to GPLv3 or later.
2007-07-25 04:29:40 +00:00
Chong Yidong
a89d4ed8ae
(perl-indent-command): Use delete-region instead of kill-region.
2007-04-21 20:06:49 +00:00
Dan Nicolaescu
80382c240f
* progmodes/perl-mode.el (perl-indent-level): Mark as safe local var.
...
* progmodes/cperl-mode.el (cperl-indent-level): Likewise.
2007-04-16 07:05:28 +00:00
Glenn Morris
d7a0267c8d
Add 2007 to copyright years.
2007-01-21 03:53:13 +00:00
Stefan Monnier
cbe8cf2a45
(perl-beginning-of-function): Skip anonymous subs.
2006-05-04 21:58:34 +00:00
Stefan Monnier
16a3b9b72c
(perl-indent-new-calculate): Recompute parse-start after jumping backward by
...
a whole sexp.
2006-04-12 05:11:12 +00:00
Nick Roberts
d91362c9e0
Update copyright for 2006.
2006-02-10 09:00:31 +00:00
Juri Linkov
8ec3bce045
Add :link (custom-group-link font-lock-faces) to defgroup.
2005-11-17 07:40:11 +00:00
Stefan Monnier
8b9e43d1ce
(perl-font-lock-special-syntactic-constructs):
...
Rename from perl-font-lock-syntactic-face-function.
Change the calling convention so it can be used as a font-lock MATCHER.
Do the parse-partial-sexp loop outselves.
(perl-font-lock-syntactic-keywords): Use it.
(perl-mode): Don't set font-lock-syntactic-face-function any more.
2005-11-02 17:33:28 +00:00
Stefan Monnier
dcc6da3a1c
(perl-font-lock-syntactic-keywords):
...
Fix regexp for when "s///" is at the beginning of line.
2005-09-07 19:54:49 +00:00
Juanma Barranquero
a69add875c
(font-lock-comment-face, font-lock-doc-face, font-lock-string-face):
...
Add defvars.
2005-08-30 11:11:04 +00:00
Nick Roberts
034babe1e1
Update copyright for release of 22.1 for progmodes directory.
2005-08-01 08:43:45 +00:00
Lute Kamstra
3a35cf56e7
Update FSF's address.
2005-07-04 17:55:18 +00:00
Juanma Barranquero
f530778210
Specify missing group (and type, if simple) in defcustom.
2005-05-19 19:06:19 +00:00
Stefan Monnier
44ebeb1b6e
(perl-font-lock-keywords-2):
...
Accept qualified variable and function names.
2005-03-22 19:43:13 +00:00
Stefan Monnier
92aba9ab38
(perl-indent-new-calculate): New function.
...
(perl-indent-line): Use it.
2005-03-20 18:04:41 +00:00
Stefan Monnier
ca79c816e8
(perl-font-lock-syntactic-face-function): Properly handle the case where the
...
`m' or `s' command's argument is not yet terminated.
2005-03-20 17:06:13 +00:00
Richard M. Stallman
8eac6e91e4
(perl-mode-hook): Defvar it.
...
(perl-mode): Use run-mode-hooks.
2005-03-18 00:13:40 +00:00
Stefan Monnier
35c5f5d32f
(perl-imenu-generic-expression): Add entries for perldoc sections.
...
(perl-outline-regexp, perl-outline-level): New var and function.
(perl-mode): Use them.
2005-02-27 23:13:19 +00:00
Stefan Monnier
8a525646b0
(perl-nochange, perl-calculate-indent):
...
Don't confuse module-prefixed identifiers for labels.
Reported by Juan-Leon Lahoz Garcia <juanleon1@gmail.com>.
2005-01-03 20:46:22 +00:00
Richard M. Stallman
d473a4f9e0
(perl-mode): Use mode-require-final-newline.
2004-12-31 14:55:01 +00:00
Miles Bader
ab5796a9f9
Add arch taglines
2003-09-01 15:45:59 +00:00
Stefan Monnier
8bee10187c
(perl-font-lock-syntactic-keywords): Match more cases of /.../ patterns.
2003-05-23 15:49:16 +00:00
Stefan Monnier
bbce4eb45b
(perl-tab-always-indent): Default to tab-always-indent.
...
(perl-end-of-function): Remove unsed var `npos'.
2003-05-17 22:38:13 +00:00
Juanma Barranquero
a1506d2977
Trailing whitepace deleted.
2003-02-04 13:24:35 +00:00
Stefan Monnier
2a4407be87
(perl-hanging-paren-p): New fun.
...
(perl-indent-line): Look at the open-paren to indent a close-paren.
(perl-calculate-indent): Try to better indent args after hanging paren.
Remove special code for open-paren-in-column-0.
2002-11-12 21:03:37 +00:00
Stefan Monnier
42be8f2eca
(perl-mode-syntax-table): Change $ back to just "/" instead of "/ p".
...
(perl-font-lock-syntactic-keywords): Use ". p" for the `$'.
2002-10-18 21:35:05 +00:00
Stefan Monnier
d3627c478f
(perl-mode-syntax-table): Mark $, % and @
...
such that backward-sexp correctly skips them.
(perl-font-lock-keywords-2): Use regexp-opt.
(perl-font-lock-syntactic-keywords)
(perl-font-lock-syntactic-face-function): Better handle PODs.
Handle package names with ' in them and ($$) in `sub' declarations.
Handle format staements. Handle regexp and quote-like ops.
(perl-empty-syntax-table): New var.
(perl-quote-syntax-table): New fun.
2002-09-13 18:44:29 +00:00
Richard M. Stallman
9f2e5ef39d
(perl-mode-abbrev-table): Restore definition.
2002-01-22 07:18:14 +00:00
Richard M. Stallman
23d107d750
(perl-mode): Don't use define-derived-mode.
2001-11-21 11:01:55 +00:00
Stefan Monnier
8ab2646a67
(perl-indent-line): Use eq' to compare output of
char-after'.
2001-10-31 02:42:54 +00:00
Gerd Moellmann
df3fd736fd
(perl-indent-continued-arguments): New var.
...
(perl-calculate-indent): Use it.
(perl-backward-to-noncomment): Use forward-comment.
2001-10-05 09:36:31 +00:00
Stefan Monnier
4a0aa1d93a
(perl-font-lock-syntactic-keywords): New var, to recognize ${ $' and PODs.
...
(perl-font-lock-syntactic-face-function): New function.
(perl-mode): Use them.
(perl-continuation-line-p): New function, from perl-calculate-indent.
(perl-calculate-indent): Use it, to properly handle continuation
lines of continuation lines.
2001-06-10 18:02:43 +00:00
Stefan Monnier
4b8dfb4345
(perl-mode): Use define-derived-mode.
...
(perl-comment-indent): Simplify to let newcomment.el do its job.
(perl-electric-terminator, perl-calculate-indent, perl-indent-exp)
(perl-mark-function): Cleanup the namespace.
(perl-calculate-indent): Don't be fooled by nested functions.
2001-05-25 21:16:05 +00:00
Stefan Monnier
be5e3be3ac
(perl-mode): Don't gratuitously override the default for comment-column.
2000-09-29 03:32:40 +00:00
Gerd Moellmann
cc6777a332
(perl-indent-line): When looking for a
...
label, ensure that the first colon isn't followed by another.
2000-05-30 20:40:09 +00:00
Richard M. Stallman
d06ad999da
(perl-mode): Add autoload cookie.
1998-04-30 03:22:20 +00:00
Stephen Eglen
5636765c52
Customized.
1998-02-22 19:51:45 +00:00
Simon Marshall
883212ce69
Changed font-lock-reference-face to font-lock-constant-face.
1998-02-20 14:58:27 +00:00
Dave Love
c0b08eb017
Use imenu-case-fold-search.
1997-12-12 17:10:08 +00:00
Karl Heuer
fcae1b4cb2
(perl-mode): Delete autoload cookie.
1997-11-23 02:14:14 +00:00
Richard M. Stallman
b8668259e2
(calculate-perl-indent): When indenting under a
...
containing openparen, skip spaces after the openparen.
1997-04-08 01:18:14 +00:00
Karl Heuer
3d0ced7a14
*** empty log message ***
1996-11-17 19:40:38 +00:00
Richard M. Stallman
5b1bdb5f74
(electric-perl-terminator, perl-indent-command):
...
(perl-backward-to-noncomment, indent-perl-exp): Avoid error if
comment-start-skip is nil.
1996-10-26 18:14:31 +00:00
Richard M. Stallman
86175613ea
Add `provide' call.
1996-09-28 03:17:21 +00:00
Karl Heuer
4d23eb4bd3
(perl-imenu-generic-expression): Recognize packages.
1996-02-21 21:29:14 +00:00