Skip to content

Filetype specific ignore pattern #10

@rhysd

Description

@rhysd

g:grammarous#ignore_patterns is a dictionary whose key is filetype and whose value is array of pattern. Ignored area should be linewise because line and col will be changed if it is characterwise. The pattern in the array is a dictionary and it should has a key "start" and "end" or "start" and "post_end" or simply "pattern" only. "end" means the ignored area ends with the pattern "end" indicates. "post_end" means the ignored area ends just before the pattern "post_end" indicates.
"pattern" means the matched lines are simply ignored.

Example

{
  \ 'markdown' : [{'start' : '^```', 'end' : '```'}],
  \ 'help' : [{'pattern' : '^[<>]'}, {'start' : '^>$', 'end' : '^<$'}]
\ }

Note

Before resolving this issue by Vim script, Investigation of languagetool-commandline's feature should be done.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions