[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#61403: 30.0.50; C tree-sitter bug?
From: |
Eli Zaretskii |
Subject: |
bug#61403: 30.0.50; C tree-sitter bug? |
Date: |
Sun, 12 Feb 2023 16:36:43 +0200 |
> From: Po Lu <luangruo@yahoo.com>
> Cc: casouri@gmail.com, 61403@debbugs.gnu.org
> Date: Sun, 12 Feb 2023 22:12:12 +0800
>
> 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.
Only for types qualifiers it knows about. There are a lot of examples
in w32*.c files, here's one (fron line 610 of w32.c):
static BOOL WINAPI
open_process_token (HANDLE ProcessHandle,
DWORD DesiredAccess,
PHANDLE TokenHandle)
I think we are splitting hair here. In the code snippet you posted in
the OP, the non-fontification of 'char' is the only real issue.
- 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, 2023/02/12
- bug#61403: 30.0.50; C tree-sitter bug?,
Eli Zaretskii <=