Skip to content

Inline comments #110

Open
Open

Description

@AlexeyTipunin

Hello.

Is any possible to use inline comments like this:

Database = TankBattery # Database name

?
Thenk you.

Activity

  1. rickyah commented on Jul 21, 2016

    @rickyah
    Owner

    @AlexeyTipunin I'm so, so sorry I missed this issue! I remember reading the email notifying this issue but I don't know why I removed from my inbox and then forgot about this. My apologies

    On your question:

    no, inline comments are NOT supported, but that's a bug, not a feature!

    The problem is that the parser supports the comment characters in the middle of keys / values (don't know what was I thinking when I made the parser behave like this 😢) The problem is that changing this behaviour will change the way the parser works and it will break compatibility with previous versions (triggering a new Major version of the lib)

    I'll start working on correcting this issue and try to mitigate this behaviour while supporting inline comments, so I can skip a new Major version change.

  2. Malij75 commented on Sep 8, 2016

    @Malij75

    Hi,
    Please not forget implement Configuration property like AllowInlineComment for turn inline comment search on and off, because sometime it's need to use ";" or "#" as value part

    thanks,
    Andriy

  3. reopened this on Dec 5, 2016
  4. added this to the v3.0.0 milestone on Feb 17, 2017
  5. self-assigned this
    on Feb 22, 2017
  6. Al12rs commented on Mar 25, 2019

    @Al12rs

    I second this feature request. A lot of the INI files my application needs to parse will contain inline comments.
    Having this in the configuration options would be incredibly helpful.

  7. bluekms commented on Sep 10, 2024

    @bluekms

    I need this feature.
    When will v3.0.0 be released?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions