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

apostrophe character in .cfg files #5

Open
obriencj opened this issue Oct 12, 2023 · 0 comments
Open

apostrophe character in .cfg files #5

obriencj opened this issue Oct 12, 2023 · 0 comments

Comments

@obriencj
Copy link

obriencj commented Oct 12, 2023

The apostrophe (single-quote) character in a setup.cfg leads to all text after that point being miscolored, until a matching apostrophe is run across.

In the case of setup.cfg, the apostrophe character has no special meaning, and should not trigger any sort of coloration at all. This is from using Python's ConfigParser underlying implementation.

I run into this all of the time because my last name has an apostrophe in it. eg.
https://github.com/obriencj/koji-smoky-dingo/blob/master/setup.cfg

In the cases for this type of file, an apostrophe may have meaning as part of the value to be parsed later on, eg. these lines

install_requires =
  appdirs
  koji
  typing_extensions ; python_version < '3.10'

That isn't special syntax for the cfg format itself there, those are passed along verbatim for other tools to interpret.

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

1 participant