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

Allow empty values in the spec #47

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

cxw42
Copy link
Member

@cxw42 cxw42 commented Feb 11, 2024

Note: This PR builds on #46. Please review only the head commit. All other commits are part of #46.

Part of editorconfig/editorconfig#496 .

Update the spec to expressly permit the form

key =

as defining key with an empty string as its value. This is different from not defining key at all.

@ppalaga has written draft tests at editorconfig/editorconfig-core-test#52 .

Change single-backticks to double-backticks as required by rst.
Previously, the rule for blank lines technically did not cover
empty lines.  Clarify that blank lines are lines that are empty after
any leading whitespace is removed.  Also clarify that the trailing
line separator (if any) is ignored.
Make the spec conform to existing test `spaces_after_section_name`.

Fixes editorconfig/editorconfig#500
@cxw42 cxw42 added the enhancement New feature or request label Feb 11, 2024
@cxw42 cxw42 requested a review from ppalaga February 11, 2024 20:53
Copy link

@ppalaga ppalaga left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks @cxw42!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants