From: Eli Zaretskii Date: Thu, 18 Apr 2024 10:30:20 +0000 (+0300) Subject: ; Minor change in last commit X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=6e19d40e7fa684758ddbe29191593caca212d85a;p=emacs.git ; Minor change in last commit * 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) --- diff --git a/lisp/progmodes/go-ts-mode.el b/lisp/progmodes/go-ts-mode.el index 83e15301854..f2b586dfb43 100644 --- a/lisp/progmodes/go-ts-mode.el +++ b/lisp/progmodes/go-ts-mode.el @@ -135,6 +135,16 @@ :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 @@ -172,16 +182,6 @@ (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