vint icon indicating copy to clipboard operation
vint copied to clipboard

"E492: Not an editor command" over a regex used in syntax

Open da-x opened this issue 6 years ago • 2 comments

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.

da-x avatar Jul 07 '18 16:07 da-x

(Reproduces on master as well)

da-x avatar Jul 07 '18 16:07 da-x

This is vimlparser's bug. Created issue https://github.com/vim-jp/vim-vimlparser/issues/166

tyru avatar Mar 06 '20 15:03 tyru