From: Dmitry Gutov <dgutov@yandex.ru>
To: "牟 桐" <mou.tong@outlook.com>, 61472@debbugs.gnu.org
Subject: bug#61472: 29.0.60; css{-ts}-mode highlight problem
Date: Tue, 14 Feb 2023 03:26:04 +0200 [thread overview]
Message-ID: <c6c24830-dae1-6fbd-0ba2-2d20e073c301@yandex.ru> (raw)
In-Reply-To: <D7E644A5-CAE7-424D-8721-27D925784C82@outlook.com>
On 13/02/2023 11:10, 牟 桐 wrote:
> When I'm checking the [offical
> doc](https://www.w3.org/TR/CSS21/syndata.html#characters), I saw that
>
>> In CSS, identifiers can contain only the characters [a-zA-Z0-9] and
>> ISO 10646 characters U+00A0 and higher, plus the hyphen (-) and the
>> underscore (_)
> I don't know whether the major mode is designed to work like this (since
> the official said the `.` `#` ... are invalid, perhaps the browser made
> them work) or is the major mode's bug.
>
> Thanks 😉
The parser indeed doesn't seem to be able to parse that text. I'm not
sure whether it's an unofficial extension, or it's simply not expected
to work in CSS files.
If it's the former, and the browsers support it, filing an issue at the
grammar repo could help:
https://github.com/tree-sitter/tree-sitter-css/issues
If it's the latter, here's some advice at the end of this answer:
https://stackoverflow.com/a/32273294/615245 (to use ~=).
next prev parent reply other threads:[~2023-02-14 1:26 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-13 9:10 bug#61472: 29.0.60; css{-ts}-mode highlight problem 牟 桐
2023-02-14 1:26 ` Dmitry Gutov [this message]
2023-03-30 4:39 ` 牟 桐
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=c6c24830-dae1-6fbd-0ba2-2d20e073c301@yandex.ru \
--to=dgutov@yandex.ru \
--cc=61472@debbugs.gnu.org \
--cc=mou.tong@outlook.com \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.