Fix treesit-query-validate for string input (bug#66400)
* lisp/treesit.el (treesit-query-validate): Don't expand if QUERY is string.
This commit is contained in:
parent
81a0c1ed2e
commit
53292c5d81
1 changed files with 3 additions and 1 deletions
|
@ -2528,7 +2528,9 @@ to the offending pattern and highlight the pattern."
|
|||
(start (nth 1 data))
|
||||
(inhibit-read-only t))
|
||||
(erase-buffer)
|
||||
(insert (treesit-query-expand query))
|
||||
(insert (if (stringp query)
|
||||
query
|
||||
(treesit-query-expand query)))
|
||||
(goto-char start)
|
||||
(search-forward " " nil t)
|
||||
(put-text-property start (point) 'face 'error)
|
||||
|
|
Loading…
Add table
Reference in a new issue