Skip to content

VIM: Define macros for escape sequence for ESC

Chun-wei Fan requested to merge fix-escape-sequence into master

Hi,

From the commit message of the first commit:

The '\e' escape sequence (for ESC) is non-standard, so it is not available for non-GCC compilers for the compilers that we are concerned about.

So, define macros for the esacpe sequence for ESC for both GCC and non-GCC scenarios so that the ESC character can be properly handled.

See: https://stackoverflow.com/questions/63255838/how-can-i-fix-warning-c4129-e-unrecognized-character-escape-sequence

This attempts to fix compiler warnings and hence handling on Visual Studio builds where '\e' is not a recognized escape sequence, which made the related tests fail as the ESC character was not handled properly.

With blessings, thank you!

Merge request reports