[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#71070: 30.0.50; c++-ts-mode namespace wrong fontification.
From: |
Eli Zaretskii |
Subject: |
bug#71070: 30.0.50; c++-ts-mode namespace wrong fontification. |
Date: |
Sun, 19 May 2024 22:13:45 +0300 |
> Date: Sun, 19 May 2024 21:00:42 +0200
> From: Ergus <spacibba@aol.com>
> Cc: Yuan Fu <casouri@gmail.com>, 71070@debbugs.gnu.org
>
> >Why do you think std should be in font-lock-constant-face? The name
> >of a namespace is not a constant, it's an identifier.
>
> Hi Eli:
>
> That's how namespaces are fontified in the c++-mode. Not telling it is
> correct, wrong or if needs improvement; just that c++-ts-mode is not
> doing in the same way.
>
> Try this:
>
> ```main.cpp
>
> const std::string a;
>
> class myclass {
> std::time::timespec var;
> };
>
> int main()
> {
> std::string b = 1;
>
>
> }
> ```
>
> and then M-x c++-ts-mode you will see the difference.
No one said that what c++-mode does is necessarily correct. maybe it
is, maybe it isn't.
How do other C++ IDEs fontify namespace names?
- bug#71070: 30.0.50; c++-ts-mode namespace wrong fontification., Ergus, 2024/05/19
- bug#71070: 30.0.50; c++-ts-mode namespace wrong fontification., Eli Zaretskii, 2024/05/19
- bug#71070: 30.0.50; c++-ts-mode namespace wrong fontification., Ergus, 2024/05/19
- bug#71070: 30.0.50; c++-ts-mode namespace wrong fontification.,
Eli Zaretskii <=
- bug#71070: 30.0.50; c++-ts-mode namespace wrong fontification., Ergus, 2024/05/19
- bug#71070: 30.0.50; c++-ts-mode namespace wrong fontification., Eli Zaretskii, 2024/05/20
- bug#71070: 30.0.50; c++-ts-mode namespace wrong fontification., Dmitry Gutov, 2024/05/21
- bug#71070: 30.0.50; c++-ts-mode namespace wrong fontification., Yuan Fu, 2024/05/22
- bug#71070: 30.0.50; c++-ts-mode namespace wrong fontification., Eli Zaretskii, 2024/05/22
- bug#71070: 30.0.50; c++-ts-mode namespace wrong fontification., Dmitry Gutov, 2024/05/22