Open bunnylushington opened 10 months ago
@bunnylushington this is probably related to a syntax-propertize-function setting the quoted text \"\"\" to "$". I am not sure what it is supposed to be, so any insight there will be useful.
I suspect this is the offending function:
(defun elixir-ts--syntax-propertize (start end)
"Apply syntax text properties between START and END for `elixir-ts-mode'."
(let ((captures
(treesit-query-capture 'elixir elixir-ts--syntax-propertize-query start end)))
(pcase-dolist (`(,name . ,node) captures)
(pcase-exhaustive name
('quoted-text
(put-text-property (1- (treesit-node-end node)) (treesit-node-end node)
'syntax-table (string-to-syntax "$")))))))
The \"\"\" should probably be handled better, but I won't have time to fix it very soon without help.
An unterminated single or double quote inside a multi-line
@doc
construct will inhibitprettify-symbols-mode
from functioning correctly. The functionprettify-symbols-default-compose-p
is specific about when it's willing to prettify a symbol and it appears that the syntax class of the character preceding the symbol is incorrect.With the simple configuration
we get
Single line comments don't trigger the issue. A lone double quote will. Matched quotes of either sort will not.
Not, obviously, a serious or pressing issue! I happen to use a lot of contractions in my docs and noticed the behavior though I'm stumped how best to address it.