Hi Arash,
>>>>> Arash Esbati <[email protected]> writes:
> You installed the change above some time ago and I was thinking if we
> could fix the N.B. comment by making a change like this:
> diff --git a/style/shortvrb.el b/style/shortvrb.el
> index e6de0608..59d31101 100644
> --- a/style/shortvrb.el
> +++ b/style/shortvrb.el
> @@ -82,9 +82,21 @@
> (when (and LaTeX-shortvrb-chars
> (featurep 'font-latex)
> (eq TeX-install-font-lock 'font-latex-setup))
> - (font-latex-add-to-syntax-alist
> - (mapcar (lambda (char) (cons char "\""))
> - LaTeX-shortvrb-chars))
> + ;; (font-latex-add-to-syntax-alist
> + ;; (mapcar (lambda (char) (cons char "\""))
> + ;; LaTeX-shortvrb-chars))
> +
> + (dolist (c LaTeX-shortvrb-chars)
> + (let ((s (char-to-string c)))
> + (add-to-list 'font-latex-syntactic-keywords-extra
> + `(,(concat "\\(" s "\\)"
> + ".*?"
> + "\\(" (regexp-quote TeX-esc) "*\\)"
> + "\\(" s "\\)")
> + (1 "\"") (2 ".") (3 "\"")))))
> +
> + ;; Tell font-lock about the update
> + (font-latex-set-syntactic-keywords)
> (font-latex-add-keywords '(("MakeShortVerb" "*{")
> ("DeleteShortVerb" "{"))
> WDYT?
It seems OK. I'm fine with your proposal.
Regards,
Ikumi Keita
#StandWithUkraine #StopWarInUkraine