unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Theodor Thornhill via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: "Jostein Kjønigsen" <jostein@secure.kjonigsen.net>,
	"Yuan Fu" <casouri@gmail.com>
Cc: 59735@debbugs.gnu.org
Subject: bug#59735: 29.0.60; csharp-ts-mode: imported namespaces are fontified inconsistently
Date: Tue, 06 Dec 2022 11:22:52 +0100	[thread overview]
Message-ID: <878rjkx24j.fsf@thornhill.no> (raw)
In-Reply-To: <9e0c6ce6-9e81-da13-64cb-34a0ca1c8999@secure.kjonigsen.net>

Jostein Kjønigsen <jostein@secure.kjonigsen.net> writes:

> I almost forgot about this one.
>

Same!

> Here's a patch which solves this issue.
>

Thanks! LGTM - Yuan, will you install?

Theo

> --
> Jostein
> From 2922c5cd3be95cbd7dfc5b427e0bb38b4daf15ea Mon Sep 17 00:00:00 2001
> From: =?UTF-8?q?Jostein=20Kj=C3=B8nigsen?= <jostein@kjonigsen.net>
> Date: Tue, 6 Dec 2022 09:40:03 +0100
> Subject: [PATCH] lisp/progmodes/csharp-mode.el: consistent fontification of
>  using-directives
>
> ---
>  lisp/progmodes/csharp-mode.el | 5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/lisp/progmodes/csharp-mode.el b/lisp/progmodes/csharp-mode.el
> index 054dabfed07..bdddb46e727 100644
> --- a/lisp/progmodes/csharp-mode.el
> +++ b/lisp/progmodes/csharp-mode.el
> @@ -748,8 +748,11 @@ csharp-ts-mode--font-lock-settings
>     :language 'c-sharp
>     :feature 'definition
>     :override t
> -   '((qualified_name (identifier) @font-lock-variable-name-face)
> +   '((qualified_name (identifier) @font-lock-type-face)
>       (using_directive (identifier) @font-lock-type-face)
> +     (using_directive (name_equals
> +                       (identifier) @font-lock-type-face
> +                       ["="] @default-face))
>  
>       (enum_declaration (identifier) @font-lock-type-face)
>       (enum_member_declaration (identifier) @font-lock-variable-name-face)
> -- 
> 2.34.1





  reply	other threads:[~2022-12-06 10:22 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <A77DCA47-9CBF-4506-9A90-B8080B0D901D@gmail.com>
2022-12-01  8:35 ` bug#59735: 29.0.60; csharp-ts-mode: imported namespaces are fontified inconsistently Jostein Kjønigsen
2022-12-01  8:45   ` Theodor Thornhill via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-12-01  9:23     ` Jostein Kjønigsen
2022-12-06  8:50       ` Jostein Kjønigsen
2022-12-06 10:22         ` Theodor Thornhill via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
2022-12-06 21:43           ` Yuan Fu
     [not found]   ` <handler.59735.C.167037242622860.notifdonectrl.0@debbugs.gnu.org>
2022-12-12  8:24     ` bug#59735: acknowledged by developer (control message for bug #59735) Jostein Kjønigsen
2022-12-12 12:28       ` Jostein Kjønigsen

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=878rjkx24j.fsf@thornhill.no \
    --to=bug-gnu-emacs@gnu.org \
    --cc=59735@debbugs.gnu.org \
    --cc=casouri@gmail.com \
    --cc=jostein@secure.kjonigsen.net \
    --cc=theo@thornhill.no \
    /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).