vim-python / python-syntax

Python syntax highlighting for Vim
MIT License
438 stars 84 forks source link

Avoid spellchecking the `f` in an `f-string` #94

Open m-zat opened 1 year ago

m-zat commented 1 year ago

Before this commit the spellchecker highlights everything in the following:

f'correct word' ^^^^^^^^^

f'wierd word' ^^^^^^^

By adding the matchgroup directive, the start and end of the region are not considered when spellchecking. The examples become:

f'correct word'

f'weird word' ^^^^^