Skip to content

\ 带来的一系列问题 #653

@Alexeighteightsix

Description

@Alexeighteightsix

行末的 \ 可以在下一行延续当前行的状态(如注释、#define)但 \ 后有空格就变成了正常高亮,但实则不会执行下一行,如图:


upd 11-23:

  1. 选自 cppreference 的代码(图床有点慢):
    1763880004775.png
    可以看到高亮和括号折叠均有问题
  2. 在第 14 行后换行会没有缩进:
    1763880475391.png
  3. main 函数开头粘贴
PUT\
S("Output ends here\\
0 Not printed");

时会有错误的自动缩进导致编译错误:
1763880633312.png
报错信息为 [错误] 'PUT' was not declared in this scope; did you mean 'PUTS'?,是因为

PUT\
	S

有缩进导致了它被解释为 PUT S

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions