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

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

Open
da-x opened this issue Jul 7, 2018 · 2 comments
Open

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

da-x opened this issue Jul 7, 2018 · 2 comments

Comments

@da-x
Copy link

da-x commented Jul 7, 2018

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
Copy link
Author

da-x commented Jul 7, 2018

(Reproduces on master as well)

@tyru
Copy link
Collaborator

tyru commented Mar 6, 2020

This is vimlparser's bug.
Created issue vim-jp/vim-vimlparser#166

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

2 participants