1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-02-23 08:20:41 -08:00
emacs/lisp/progmodes
Harald Jörg 7b2448ae6e cperl-mode: Improve detection of index entries for imenu
* lisp/progmodes/cperl-mode.el
(cperl-imenu-addback): Customization variable deleted.  This
variable has been declared obsolete in 1998.
(cperl--basic-identifier-regexp) and many other variables:
defining regular expressions for basic Perl constructs.
(cperl-imenu--create-perl-index): This function has been
completely rewritten, keeping only some parts of the output
formatting.  It now recognizes a lot more package and
subroutine declarations which came since Perl 5.14: Packages
with a version and/or a block attached, lexical subroutines,
declarations with a newline between the keyword "package" and
the package name, and several more.  This version also
correctly separates subroutine names from attributes, does no
longer support "unnamed" packages (which don't exist in Perl),
and doesn't fall for false positives like stuff that looks
like a declaration in a multiline string.
(cperl-tags-hier-init): Eliminate call to
`cperl-imenu-addback` (which actually was commented out in
1997)

* test/lisp/progmodes/cperl-mode-tests.el
(cperl-test--validate-regexp) and six other new tests for the
new regular expressions and the index creation.

* test/lisp/progmodes/cperl-mode-resources/grammar.pl: New
file showcasing different syntax variations for package and
sub declarations (bug#46574).
2021-02-17 00:54:38 +01:00
..
antlr-mode.el Declare empty macro imenu-progress-menu obsolete 2021-02-10 14:42:51 +01:00
asm-mode.el Fix fill-paragraph in asm-mode 2021-01-28 07:34:10 +01:00
autoconf.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
bat-mode.el * lisp/progmodes/bat-mode.el: Use lexical-binding. 2021-01-28 21:57:51 +01:00
bug-reference.el Remove redundant :group args in progmodes/*.el 2021-02-13 07:17:20 +01:00
cc-align.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
cc-awk.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
cc-bytecomp.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
cc-cmds.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
cc-defs.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
cc-engine.el CC Mode: Prevent "const" inside an identifier being recognized as the keyword 2021-02-02 20:34:42 +00:00
cc-fonts.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
cc-guess.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
cc-langs.el CC Mode: Prevent "const" inside an identifier being recognized as the keyword 2021-02-02 20:34:42 +00:00
cc-menus.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
cc-mode.el Merge from origin/emacs-27 2021-01-01 01:28:16 -08:00
cc-styles.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
cc-vars.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
cfengine.el Remove redundant :group args in progmodes/*.el 2021-02-13 07:17:20 +01:00
cl-font-lock.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
cmacexp.el Remove redundant :group args in progmodes/*.el 2021-02-13 07:17:20 +01:00
compile.el Add command to recenter errors from Occur/Grep buffers 2021-02-07 16:51:07 +01:00
cperl-mode.el cperl-mode: Improve detection of index entries for imenu 2021-02-17 00:54:38 +01:00
cpp.el Remove redundant :group args in progmodes/*.el 2021-02-13 07:17:20 +01:00
cwarn.el Remove redundant :group args in progmodes/*.el 2021-02-13 07:17:20 +01:00
dcl-mode.el Remove redundant :group args in progmodes/*.el 2021-02-13 07:17:20 +01:00
ebnf-abn.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
ebnf-bnf.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
ebnf-dtd.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
ebnf-ebx.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
ebnf-iso.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
ebnf-otz.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
ebnf-yac.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
ebnf2ps.el Prefer defvar-local in progmodes/*.el 2021-01-31 20:08:25 +01:00
ebrowse.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
elisp-mode.el ; Fix recent change in eval-last-sexp 2021-02-09 13:01:18 +00:00
etags.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
executable.el Delete 20 year old comment in executable.el 2021-02-13 07:22:44 +01:00
f90.el Remove some unnecessary references to Emacs 18 2021-02-05 02:27:57 +01:00
flymake-cc.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
flymake-proc.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
flymake.el Remove redundant :group args in progmodes/*.el 2021-02-13 07:17:20 +01:00
fortran.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
gdb-mi.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
glasses.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
grep.el Add command to recenter errors from Occur/Grep buffers 2021-02-07 16:51:07 +01:00
gud.el Remove redundant :group args in progmodes/*.el 2021-02-13 07:17:20 +01:00
hideif.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
hideshow.el Remove redundant :group args in progmodes/*.el 2021-02-13 07:17:20 +01:00
icon.el Remove redundant :group args in progmodes/*.el 2021-02-13 07:17:20 +01:00
idlw-complete-structtag.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
idlw-help.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
idlw-shell.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
idlw-toolbar.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
idlwave.el Assume font-lock-mode variable is not void 2021-02-05 01:15:02 +01:00
inf-lisp.el Remove redundant :group args in progmodes/*.el 2021-02-13 07:17:20 +01:00
js.el Remove redundant :group args in progmodes/*.el 2021-02-13 07:17:20 +01:00
ld-script.el Remove redundant :group args in progmodes/*.el 2021-02-13 07:17:20 +01:00
m4-mode.el ; Fix typo in last change to m4-mode.el. 2021-02-12 18:21:45 +00:00
make-mode.el Remove redundant :group args in progmodes/*.el 2021-02-13 07:17:20 +01:00
meta-mode.el Use regexp-opt for font lock defaults in meta-mode.el 2021-02-12 18:50:55 +01:00
mixal-mode.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
modula2.el Remove redundant :group args in progmodes/*.el 2021-02-13 07:17:20 +01:00
octave.el Fix Octave double-quoted string line continuations 2021-02-11 14:35:47 +00:00
opascal.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
pascal.el Remove redundant :group args in progmodes/*.el 2021-02-13 07:17:20 +01:00
perl-mode.el Remove redundant :group args in progmodes/*.el 2021-02-13 07:17:20 +01:00
prog-mode.el Remove redundant :group args in progmodes/*.el 2021-02-13 07:17:20 +01:00
project.el Revert "Fix the previous change" 2021-02-06 22:59:00 +02:00
prolog.el Make font locking work in mercury-mode 2021-01-10 15:04:48 +01:00
ps-mode.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
python.el Deactivate region in `C-c C-r' in python-mode 2021-02-04 18:24:34 +01:00
ruby-mode.el ruby-syntax-propertize: Fix certain cases following :: 2021-02-02 03:48:04 +02:00
scheme.el Minor cleanups in scheme.el 2021-02-12 18:50:55 +01:00
sh-script.el Prefer defvar-local in progmodes/*.el 2021-01-31 20:08:25 +01:00
simula.el Remove redundant :group args in progmodes/*.el 2021-02-13 07:17:20 +01:00
sql.el Assume font-lock-mode variable is not void 2021-02-05 01:15:02 +01:00
subword.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
tcl.el Fix tcl-mode indentation of namespaced code 2021-02-08 07:33:49 +01:00
vera-mode.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
verilog-mode.el Assume font-lock-mode variable is not void 2021-02-05 01:15:02 +01:00
vhdl-mode.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
which-func.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
xref.el Make sure default-directory relates to the originating buffer 2021-02-04 22:05:59 +02:00
xscheme.el Remove redundant :group args in progmodes/*.el 2021-02-13 07:17:20 +01:00