]> git.eshelyaron.com Git - emacs.git/commitdiff
; Fix last change
authorEli Zaretskii <eliz@gnu.org>
Sat, 3 Feb 2024 09:20:11 +0000 (11:20 +0200)
committerEshel Yaron <me@eshelyaron.com>
Sun, 4 Feb 2024 11:04:57 +0000 (12:04 +0100)
* lisp/progmodes/js.el
(js--treesit-font-lock-compatibility-definition-feature): Fix
comments.

(cherry picked from commit b91f0ee2fcc52b6ef2d747c5fc7f37573adc7ca5)

lisp/progmodes/js.el

index e488693d6ef3406d94c8d66983e50c731647c8b2..ebc098e6a75559e6004026b92c70f39d5fe79912 100644 (file)
@@ -3424,14 +3424,14 @@ Check if a node type is available, then return the right font lock rules
 for \"definition\" feature."
   (condition-case nil
       (progn (treesit-query-capture 'javascript '((function_expression) @cap))
-             ;; starting from 0.20.2
+             ;; Starting from version 0.20.2 of the grammar.
              '((function_expression
                 name: (identifier) @font-lock-function-name-face)
                (variable_declarator
                 name: (identifier) @font-lock-function-name-face
                 value: [(function_expression) (arrow_function)])))
     (error
-     ;; older version
+     ;; An older version of the grammar.
      '((function
         name: (identifier) @font-lock-function-name-face)
        (variable_declarator