comparison etc/NEWS @ 45828:ad50e4ff5888

Structure the changes for etags using outline headers.
author Francesco Potortì <pot@gnu.org>
date Fri, 14 Jun 2002 13:14:23 +0000
parents d4c9f3bd6dfa
children eabc9c7b9cdc
comparison
equal deleted inserted replaced
45827:6afcf684fc24 45828:ad50e4ff5888
567 then it reverts to the old behavior and asks the user to select regions for 567 then it reverts to the old behavior and asks the user to select regions for
568 comparison. 568 comparison.
569 569
570 ** Etags changes. 570 ** Etags changes.
571 571
572 *** New syntax for regular expressions, multi-line regular expressions. 572 *** New regular expressions features
573
574 **** New syntax for regular expressions, multi-line regular expressions.
573 The syntax --ignore-case-regexp=/regex/ is now undocumented and retained 575 The syntax --ignore-case-regexp=/regex/ is now undocumented and retained
574 only for backward compatibility. The new equivalent syntax is 576 only for backward compatibility. The new equivalent syntax is
575 --regex=/regex/i. More generally, it is --regex=/TAGREGEX/TAGNAME/MODS, 577 --regex=/regex/i. More generally, it is --regex=/TAGREGEX/TAGNAME/MODS,
576 where `/TAGNAME' is optional, as usual, and MODS is a string of 0 or 578 where `/TAGNAME' is optional, as usual, and MODS is a string of 0 or
577 more characters among `i' (ignore case), `m' (multi-line) and `s' 579 more characters among `i' (ignore case), `m' (multi-line) and `s'
579 expressions: `m' allows regexps to match more than one line, while `s' 581 expressions: `m' allows regexps to match more than one line, while `s'
580 (which implies `m') means that `.' matches newlines. The ability to 582 (which implies `m') means that `.' matches newlines. The ability to
581 span newlines allows writing of much more powerful regular expressions 583 span newlines allows writing of much more powerful regular expressions
582 and rapid prototyping for tagging new languages. 584 and rapid prototyping for tagging new languages.
583 585
584 *** Regular expressions can use char escape sequences as in Gcc 586 **** Regular expressions can use char escape sequences as in Gcc
585 The escaped character sequence \a, \b, \d, \e, \f, \n, \r, \t, \v, 587 The escaped character sequence \a, \b, \d, \e, \f, \n, \r, \t, \v,
586 respectively, stand for the ASCII characters BEL, BS, DEL, ESC, FF, NL, 588 respectively, stand for the ASCII characters BEL, BS, DEL, ESC, FF, NL,
587 CR, TAB, VT, 589 CR, TAB, VT,
588 590
589 *** Regular expressions can be bound to a given language 591 **** Regular expressions can be bound to a given language
590 The syntax --regex={LANGUAGE}REGEX means that REGEX is used to make tags 592 The syntax --regex={LANGUAGE}REGEX means that REGEX is used to make tags
591 only for files of language LANGUAGE, and ignored otherwise. This is 593 only for files of language LANGUAGE, and ignored otherwise. This is
592 particularly useful when storing regexps in a file. 594 particularly useful when storing regexps in a file.
593 595
594 *** Regular expressions can be read from a file 596 **** Regular expressions can be read from a file
595 The --regex=@regexfile option means read the regexps from a file, one 597 The --regex=@regexfile option means read the regexps from a file, one
596 per line. Lines beginning with space or tab are ignored. 598 per line. Lines beginning with space or tab are ignored.
597 599
598 *** In Prolog, etags creates tags for rules in addition to predicates. 600 *** New language parsing features
599 601
600 *** In Perl, packages are tags. 602 **** In Prolog, etags creates tags for rules in addition to predicates.
603
604 **** In Perl, packages are tags.
601 Subroutine tags are named from their package. You can jump to sub tags 605 Subroutine tags are named from their package. You can jump to sub tags
602 as you did before, by the sub name, or additionally by looking for 606 as you did before, by the sub name, or additionally by looking for
603 package::sub. 607 package::sub.
604 608
605 *** New default keywords for TeX. 609 **** New default keywords for TeX.
606 The new keywords are def, newcommand, renewcommand, newenvironment and 610 The new keywords are def, newcommand, renewcommand, newenvironment and
607 renewenvironment. 611 renewenvironment.
608 612
609 *** New language PHP: tags are functions, classes and defines. 613 **** New language PHP: tags are functions, classes and defines.
610 If the --members option is specified to etags, tags are vars also. 614 If the --members option is specified to etags, tags are vars also.
611 615
612 *** Honour #line directives. 616 *** Honour #line directives.
613 When Etags parses an input file that contains C preprocessor's #line 617 When Etags parses an input file that contains C preprocessor's #line
614 directives, it creates tags using the file name and line number 618 directives, it creates tags using the file name and line number