我刚注意到单引号被警告面字体锁定,导致整个缓冲区失效。有谁知道为什么会这样?例如,
#include <stdio.h>
int main(int argc, char *argv[]) {
if ( getc( stdin ) == '\n' )
//why is ^ getting font-lock-warning-face?
;
return 0;
}
版本信息:emacs 26.0.50,语义版本2.2。
从emacs -Q
开始,然后在缓冲区中启用语义模式M-x semantic-mode
。