vint
vint copied to clipboard
"E492: Not an editor command" over a regex used in syntax
I'm trying to run Vint (0.3.19) on syntax/rust.rs
from rust.vim:
syn match rustIdentifier contains=rustIdentifierPrime "\%([^[:cntrl:][:space:][:punct:][:digit:]]\|_\)\%([^[:cntrl:][:punct:][:space:]]\|_\)*" display contained
I'm getting:
[{"line_number": 57, "description": "E492: Not an editor command: _\\)\\%([^[:cntrl:][:punct:][:space:]]\\|_\\)*\" display contained", "reference": "vim-jp/vim-vimlparser", "policy_name": "SyntaxError", "column_number": 105, "file_path": "syntax/rust.vim", "severity": "error"}]
On a side note, was not able to suppress the error via:
" vint: -SyntaxError
syn match rustIdentifier contains=rustIdentifierPrime "\%([^[:cntrl:][:space:][:punct:][:digit:]]\|_\)\%([^[:cntrl:][:punct:][:space:]]\|_\)*" display contained
" vint: +SyntaxError
Seems ineffectual.
(Reproduces on master as well)
This is vimlparser's bug. Created issue https://github.com/vim-jp/vim-vimlparser/issues/166