]> code.delx.au - gnu-emacs/commitdiff
Syntax-propertize until the end of the line first
authorDmitry Gutov <dgutov@yandex.ru>
Thu, 9 Jul 2015 12:28:04 +0000 (15:28 +0300)
committerDmitry Gutov <dgutov@yandex.ru>
Thu, 9 Jul 2015 12:30:33 +0000 (15:30 +0300)
* lisp/progmodes/xref.el (xref--collect-match): Syntax-propertize
until the end of the line first.

lisp/progmodes/xref.el

index 78094ab625ce2c3eb2cd4d4fe1df49b7c222e46a..f175c89c57309c0f5a36fe05cc227604541e6a55 100644 (file)
@@ -798,6 +798,7 @@ tools are used, and when."
       (save-excursion
         (goto-char (point-min))
         (forward-line (1- line))
+        (syntax-propertize (line-end-position))
         (when (re-search-forward regexp (line-end-position) t)
           (goto-char (match-beginning 0))
           (xref-make (buffer-substring