[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#61403: 30.0.50; C tree-sitter bug?
From: |
Po Lu |
Subject: |
bug#61403: 30.0.50; C tree-sitter bug? |
Date: |
Sun, 12 Feb 2023 22:12:12 +0800 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Eli Zaretskii <eliz@gnu.org> writes:
>> It actually ``static'' on TEST builds or nothing at all, not part of the
>> type.
>
> The above actually means that it _is_ part of the type.
>
>> It ought not to be fontified, just as we don't fontify _Noreturn
>> or __attribute__ as types.
>
> In 'static char', "static" is part of the type.
In a declaration like so:
static char *
foo (void)
{
}
ANSI C states that ``static'' is a storage class specifier, not a type
specifier or qualifier, definitely not part of the type, which is ``char
*''.
CC Mode normally fontifies this accordingly, in font-lock-keyword-face.
- bug#61403: 30.0.50; C tree-sitter bug?, Po Lu, 2023/02/10
- bug#61403: 30.0.50; C tree-sitter bug?, Yuan Fu, 2023/02/12
- bug#61403: 30.0.50; C tree-sitter bug?, Po Lu, 2023/02/12
- bug#61403: 30.0.50; C tree-sitter bug?, Eli Zaretskii, 2023/02/12
- bug#61403: 30.0.50; C tree-sitter bug?, Po Lu, 2023/02/12
- bug#61403: 30.0.50; C tree-sitter bug?, Eli Zaretskii, 2023/02/12
- bug#61403: 30.0.50; C tree-sitter bug?, Po Lu, 2023/02/12
- bug#61403: 30.0.50; C tree-sitter bug?, Eli Zaretskii, 2023/02/12
- bug#61403: 30.0.50; C tree-sitter bug?,
Po Lu <=
- bug#61403: 30.0.50; C tree-sitter bug?, Eli Zaretskii, 2023/02/12