GNUAspell / aspell

http://aspell.net
GNU Lesser General Public License v2.1
236 stars 50 forks source link

Detecting spelling error in "f" prefixed strings in python code #603

Open amittendulkar opened 3 years ago

amittendulkar commented 3 years ago

This issue is related to https://github.com/redguardtoo/emacs.d/issues/892

In Python you can write strings with an f prefix. Aspell is currently not considering this prefix for spell check.

For e.g.,

print(f'Hello world')

is considered as a spelling error (f'Hello is considered as a single word).

kevina commented 3 years ago

The best way to handle this is likely a new filter for python code that will transform something like:

  print(f'Hello world')

to just

          Hello world