unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Wilhelm Kirschbaum <wkirschbaum@gmail.com>
To: 75192@debbugs.gnu.org
Subject: bug#75192: [PATCH] Update fontification for attribute values in heex-ts-mode
Date: Mon, 30 Dec 2024 12:59:57 +0200	[thread overview]
Message-ID: <CAOS0-340bL=UjmgG4Zj+V5Cb46r=8WzxcjFU0OEMPWmyL0kMRA@mail.gmail.com> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 134 bytes --]

This updates heex-ts-mode to use font-lock-string-face to be consistent
with html-ts-mode on attribute values.

Kind regards,
Wilhelm

[-- Attachment #1.2: Type: text/html, Size: 217 bytes --]

[-- Attachment #2: 0001-Update-fontification-for-attribute-values-in-heex-ts.patch --]
[-- Type: text/x-patch, Size: 1070 bytes --]

From 51dcd9cea634233439db59c977928f8d7a36edff Mon Sep 17 00:00:00 2001
From: Wilhelm Kirschbaum <wkirschbaum@gmail.com>
Date: Mon, 30 Dec 2024 12:56:40 +0200
Subject: [PATCH] Update fontification for attribute values in heex-ts-mode

Attribute values are strings as with html-ts-mode.

* lisp/progmodes/heex-ts-mode.el (heex-ts--font-lock-settings):
Change to attribute value to @font-lock-string-face.
---
 lisp/progmodes/heex-ts-mode.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/progmodes/heex-ts-mode.el b/lisp/progmodes/heex-ts-mode.el
index 797bfd6c8ff..4be987f9d81 100644
--- a/lisp/progmodes/heex-ts-mode.el
+++ b/lisp/progmodes/heex-ts-mode.el
@@ -113,7 +113,7 @@ heex-ts--font-lock-settings
      `((special_attribute_name) @font-lock-keyword-face)
      :language 'heex
      :feature 'heex-string
-     `([(attribute_value) (quoted_attribute_value)] @font-lock-constant-face)
+     `([(attribute_value) (quoted_attribute_value)] @font-lock-string-face)
      :language 'heex
      :feature 'heex-component
      `([
-- 
2.45.2


             reply	other threads:[~2024-12-30 10:59 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-12-30 10:59 Wilhelm Kirschbaum [this message]
2025-01-02  7:45 ` bug#75192: [PATCH] Update fontification for attribute values in heex-ts-mode Stefan Kangas
2025-01-02  8:36   ` Eli Zaretskii
2025-01-02  8:41     ` Stefan Kangas
2025-01-02  8:56       ` Wilhelm Kirschbaum
2025-01-02  9:06       ` Eli Zaretskii
2025-01-02 10:13         ` Wilhelm Kirschbaum

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAOS0-340bL=UjmgG4Zj+V5Cb46r=8WzxcjFU0OEMPWmyL0kMRA@mail.gmail.com' \
    --to=wkirschbaum@gmail.com \
    --cc=75192@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).