bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#60105: [PATCH] Add yaml-ts-mode


From: Juri Linkov
Subject: bug#60105: [PATCH] Add yaml-ts-mode
Date: Thu, 05 Jan 2023 20:09:22 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (x86_64-pc-linux-gnu)

>> The reason why I proposed a new customizable option is because
>> ruby-ts-mode provides an option ruby-ts-highlight-predefined-constants
>> that enables some rules in ruby-ts--font-lock-settings.  But maybe
>> there is no way to avoid this fine-grained setting in ruby-ts-mode.
>
> But there is. What do you think about this change?
>
> @@ -202,9 +197,11 @@ ruby-ts--font-lock-settings
>
>     :language language
>     :feature 'builtin
> -   `(((global_variable) @var (:match ,ruby-ts--predefined-variables @var)) 
> @font-lock-builtin-face
> -     ,@(when ruby-ts-highlight-predefined-constants
> -         `(((constant) @var (:match ,ruby-ts--predefined-constants @var))
>          @font-lock-builtin-face)))
> +   `(((global_variable) @var (:match ,ruby-ts--predefined-variables @var)) 
> @font-lock-builtin-face)
> +
> +   :language language
> +   :feature 'builtin-constant
> +   `(((constant) @var (:match ,ruby-ts--predefined-constants @var)) 
> @font-lock-builtin-face)

Look like this is a clear name.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]