From 6e19d40e7fa684758ddbe29191593caca212d85a Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Thu, 18 Apr 2024 13:30:20 +0300 Subject: [PATCH] ; 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) --- lisp/progmodes/go-ts-mode.el | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) 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 -- 2.39.5