Function: tagref--parse-tag-line
tagref--parse-tag-line is a natively compiled function defined in
tagref.el.
Signature
(tagref--parse-tag-line LINE)
Documentation
Parse a tagref list-tags output LINE.
Returns (NAME . (FILE . LINE-NUMBER)) or nil.
Source Code
;; Defined in /nix/store/mnch55hf9yszlb4dvfqhbqf0840v41qh-emacs-packages-deps/share/emacs/site-lisp/tagref.el
(defun tagref--parse-tag-line (line)
"Parse a tagref `list-tags' output LINE.
Returns (NAME . (FILE . LINE-NUMBER)) or nil."
;; Format: [tag:name] @ file:line
(when (string-match "\\[tag:\\([^]]+\\)\\] @ \\(.+\\):\\([0-9]+\\)$" line)
(let ((name (match-string 1 line))
(file (match-string 2 line))
(line-num (string-to-number (match-string 3 line))))
(cons name (cons file line-num)))))