Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug with space in syn region regex #191

Open
jez opened this issue Jul 11, 2022 · 0 comments
Open

Bug with space in syn region regex #191

jez opened this issue Jul 11, 2022 · 0 comments

Comments

@jez
Copy link

jez commented Jul 11, 2022

Example

❯ cat foo.vim
syn region foo start=/^ \+\|\tx/ end=/x/

Expected behavior

No parse errors, as this is valid.

Actual behavior:

❯ vint foo.vim
foo.vim:1:29: E10: \\ should be followed by /, ? or & (see vim-jp/vim-vimlparser)

Workaround

Wrap the space before the \t in [ ].

❯ cat foo.vim
syn region foo start=/^[ ]\+\|\tx/ end=/x/

❯ vint foo.vim

❯

Version information

❯ vint --version
0.3.21

❯ vim --version
NVIM v0.7.2
Build type: Release
LuaJIT 2.1.0-beta3
Compiled by linuxbrew@649894113f22

❯ cat /etc/lsb-release
DISTRIB_ID=Pop
DISTRIB_RELEASE=20.04
DISTRIB_CODENAME=focal
DISTRIB_DESCRIPTION="Pop!_OS 20.04 LTS"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant