emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

feature/tree-sitter f6dc55f516 07/14: ; * lisp/progmodes/js.el (js--font


From: Yuan Fu
Subject: feature/tree-sitter f6dc55f516 07/14: ; * lisp/progmodes/js.el (js--fontify-template-string): Fix typo.
Date: Fri, 4 Nov 2022 13:19:10 -0400 (EDT)

branch: feature/tree-sitter
commit f6dc55f516a88765bbd8b8c34f0ec663b8948373
Author: Yuan Fu <casouri@gmail.com>
Commit: Yuan Fu <casouri@gmail.com>

    ; * lisp/progmodes/js.el (js--fontify-template-string): Fix typo.
---
 lisp/progmodes/js.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lisp/progmodes/js.el b/lisp/progmodes/js.el
index 01da87f6be..ab8239db9e 100644
--- a/lisp/progmodes/js.el
+++ b/lisp/progmodes/js.el
@@ -3588,7 +3588,7 @@ This function is intended for use in 
`after-change-functions'."
 
 (defun js--fontify-template-string (node override start end &rest _)
   "Fontify template string but not substitution inside it.
-NODE is the template_string node. START and END marks the region
+NODE is the template_string node.  START and END marks the region
 to be fontified.
 
 OVERRIDE is the override flag described in
@@ -3605,7 +3605,7 @@ OVERRIDE is the override flag described in
                                  "template_substitution")
                           (treesit-node-start child)
                         (treesit-node-end child))))
-        (setq font-beg (max beg font-beg))
+        (setq font-beg (max start font-beg))
         (when (< font-beg end)
           (treesit-fontify-with-override
            font-beg font-end 'font-lock-string-face override)))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]