Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Bug with space in `syn region` regex

Aperta
#191 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
vim
Ambito
devtools

Direzione di ricerca

Reproduce the report with the foo.vim example and vint 0.3.21, then inspect how vim-vimlparser handles the syn region start regex containing an escaped space. The work is done when the valid command produces no parse error while the existing workaround remains unnecessary.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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"
Lingua principale
Vim Script
Stelle
173
Fork
28
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di vim-jp/vim-vimlparser

Tutte le issue di vim-jp/vim-vimlparser

Issue simili

Altre issue su DevTools

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.