diff options
| author | Eli Zaretskii | 2024-02-03 11:20:11 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2024-02-03 11:20:11 +0200 |
| commit | b91f0ee2fcc52b6ef2d747c5fc7f37573adc7ca5 (patch) | |
| tree | c6948137823704a512ff2bdb60955037a3214020 | |
| parent | 2f69353e4a756cf53459c14c5618bd262331b568 (diff) | |
| download | emacs-b91f0ee2fcc52b6ef2d747c5fc7f37573adc7ca5.tar.gz emacs-b91f0ee2fcc52b6ef2d747c5fc7f37573adc7ca5.zip | |
; Fix last change
* lisp/progmodes/js.el
(js--treesit-font-lock-compatibility-definition-feature): Fix
comments.
| -rw-r--r-- | lisp/progmodes/js.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/progmodes/js.el b/lisp/progmodes/js.el index 12c4d0aedb8..20350c0ccb6 100644 --- a/lisp/progmodes/js.el +++ b/lisp/progmodes/js.el | |||
| @@ -3433,14 +3433,14 @@ Check if a node type is available, then return the right font lock rules | |||
| 3433 | for \"definition\" feature." | 3433 | for \"definition\" feature." |
| 3434 | (condition-case nil | 3434 | (condition-case nil |
| 3435 | (progn (treesit-query-capture 'javascript '((function_expression) @cap)) | 3435 | (progn (treesit-query-capture 'javascript '((function_expression) @cap)) |
| 3436 | ;; starting from 0.20.2 | 3436 | ;; Starting from version 0.20.2 of the grammar. |
| 3437 | '((function_expression | 3437 | '((function_expression |
| 3438 | name: (identifier) @font-lock-function-name-face) | 3438 | name: (identifier) @font-lock-function-name-face) |
| 3439 | (variable_declarator | 3439 | (variable_declarator |
| 3440 | name: (identifier) @font-lock-function-name-face | 3440 | name: (identifier) @font-lock-function-name-face |
| 3441 | value: [(function_expression) (arrow_function)]))) | 3441 | value: [(function_expression) (arrow_function)]))) |
| 3442 | (error | 3442 | (error |
| 3443 | ;; older version | 3443 | ;; An older version of the grammar. |
| 3444 | '((function | 3444 | '((function |
| 3445 | name: (identifier) @font-lock-function-name-face) | 3445 | name: (identifier) @font-lock-function-name-face) |
| 3446 | (variable_declarator | 3446 | (variable_declarator |