summaryrefslogtreecommitdiffstats
path: root/tests/012
diff options
context:
space:
mode:
authorPaul A. Patience <paul@apatience.com>2021-07-18 13:07:32 -0400
committerKaz Kylheku <kaz@kylheku.com>2021-07-18 22:52:30 -0700
commitd9c7016e2fb69ddc2d3be21c5ba566aa6c53d98f (patch)
treeb90cf92b4483142dc159832bbadbeb271d646501 /tests/012
parenta5ed04c903c17da953ce89ce41c785bc605751aa (diff)
downloadtxr-d9c7016e2fb69ddc2d3be21c5ba566aa6c53d98f.tar.gz
txr-d9c7016e2fb69ddc2d3be21c5ba566aa6c53d98f.tar.bz2
txr-d9c7016e2fb69ddc2d3be21c5ba566aa6c53d98f.zip
tags: add support for etags format.
* tags.tl (etag-sec-start, etag-pat-end, etag-name-end): New variables. (tags-opts): Improve --help option's help message. Add -o/--output and -e/--emacs options. (tag): Add linum and byte slots. Add etext method. (file-tag): Initialize type slot to "F", and use it in the text method. (get-pat): Rename to... (get-pos-pat): ...this, and return the line number and byte offset in addition to the escaped line. (with-tag-shorthand-macro): Initialize linum and byte slots. Remove a needless splice (of the get-pat/get-pos-pat calls). (collect-tags-tl, collect-tags-txr): Add clarifying comments. (write-tagfile): Make use of new -o/--output option. (write-etagfile): New function. (toplevel): Set a default value for o.output if -o/--output is empty or missing. Disallow combination of --emacs and --merge. Remove unused variable have-arv. Fix double @1 appearing in calls to fnmatch from excf. Call write-etagfile instead of write-tagfile if --emacs was provided.
Diffstat (limited to 'tests/012')
0 files changed, 0 insertions, 0 deletions