Allow dots in label names

This commit is contained in:
Tom Willemsen 2013-02-16 10:48:01 +01:00
parent 2079e6c4b3
commit 116d7305ee

View file

@ -154,7 +154,7 @@ an eye out for LABEL."
(with-temp-buffer
(dispass-read-labels)
(while (re-search-forward
"^\\(\\(?:\\sw\\|\\s_\\)+\\)"
"^\\(\\(?:\\sw\\|\\s_\\|\\.\\)+\\)"
nil t)
(add-to-list 'result (match-string 1)))
result)))
@ -165,7 +165,7 @@ an eye out for LABEL."
(with-temp-buffer
(dispass-read-labels)
(while (re-search-forward
"^\\(\\(?:\\sw\\|\\s_\\)+\\) +\\([0-9]+\\) +\\(\\(?:\\sw\\|\\s_\\)+\\)"
"^\\(\\(?:\\sw\\|\\s_\\|\\.\\)+\\) +\\([0-9]+\\) +\\(\\(?:\\sw\\|\\s_\\)+\\)"
nil t)
(let ((label (match-string 1))
(length (match-string 2))