]> git.eshelyaron.com Git - emacs.git/commitdiff
; Minor change in last commit
authorEli Zaretskii <eliz@gnu.org>
Thu, 18 Apr 2024 10:30:20 +0000 (13:30 +0300)
committerEshel Yaron <me@eshelyaron.com>
Sat, 20 Apr 2024 11:06:07 +0000 (14:06 +0300)
* lisp/progmodes/go-ts-mode.el (go-ts-mode--font-lock-settings):
Rearrange features to keep alphabetical order.  (Bug#70362)

(cherry picked from commit c7bcda4ac54f31ae2724cdc3b3c884c37b667b22)

lisp/progmodes/go-ts-mode.el

index 83e15301854db65bf2984e2ccfaf6e1a4a4935d6..f2b586dfb439901f8ca8f63d00a963c769ad363d 100644 (file)
    :feature 'comment
    '((comment) @font-lock-comment-face)
 
+   :language 'go
+   :feature 'builtin
+   `((call_expression
+      function: ((identifier) @font-lock-builtin-face
+                 (:match ,(rx-to-string
+                           `(seq bol
+                                 (or ,@go-ts-mode--builtin-functions)
+                                 eol))
+                         @font-lock-builtin-face))))
+
    :language 'go
    :feature 'constant
    `([(false) (nil) (true)] @font-lock-constant-face
      (var_spec name: (identifier) @font-lock-variable-name-face
                ("," name: (identifier) @font-lock-variable-name-face)*))
 
-   :language 'go
-   :feature 'builtin
-   `((call_expression
-      function: ((identifier) @font-lock-builtin-face
-                 (:match ,(rx-to-string
-                           `(seq bol
-                                 (or ,@go-ts-mode--builtin-functions)
-                                 eol))
-                         @font-lock-builtin-face))))
-
    :language 'go
    :feature 'function
    '((call_expression