Bug with space in `syn region` regex
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
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di vim-jp/vim-vimlparser
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
vim-jp/vim-vimlparser#201 ·
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
vim-jp/vim-vimlparser#200 ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
vim-jp/vim-vimlparser#198 ·
-
Support for falsy operator? Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
vim-jp/vim-vimlparser#197 · 2 reazioni ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
vim-jp/vim-vimlparser#174 ·
Tutte le issue di vim-jp/vim-vimlparser
Issue simili
-
area: harness bug status: needs-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
Human-Agent-Society/reef#625 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
vercel-labs/just-bash#464 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100