You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to vim...@googlegroups.com
Hello,
In a .c file in the following line, the character is categorized as
"cSpecialError".
```
char my_char = '\e';
```
(This is a valid character (27) on my machine.)
It seems to be this section in runtime/syntax/c.vim:
```
83 if exists("c_gnu")
84 syn match cSpecialError "L\='\\[^'\"?\\abefnrtv]'"
85 syn match cSpecialCharacter "L\='\\['\"?\\abefnrtv]'"
86 else
87 syn match cSpecialError "L\='\\[^'\"?\\abfnrtv]'"
88 syn match cSpecialCharacter "L\='\\['\"?\\abfnrtv]'"
89 endif
```
And "c_gnu" is not set.
I tried setting "c_gnu" in "~/.vim/after/syntax/c.vim" (which is
currently vim9script).
This would not work because the scope is local to the vim script:
```
var c_gnu = 1
```
Can someone please help me how to set this variable?
And shouldn't the variable be set by default on GNU/Linux machines?
Regards
Bjoern
Ben Yip
unread,
Nov 28, 2025, 2:13:36 AMNov 28
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message