Skip to content

inline comments, after the setting value #13

@gregnis

Description

@gregnis

In the following example

[section name]
some_key = some_value # comment
another-key = another value ; comment

[another section]
# a comment
;some_key = some_value
an#other-key = another value

comments on lines 2 and 3 are not detected whereas all other are:

document [0, 0] - [8, 0]
  section [0, 0] - [3, 0]
    section_name [0, 0] - [1, 0]
      text [0, 1] - [0, 13]
    setting [1, 0] - [2, 0]
      setting_name [1, 0] - [1, 8]
      setting_value [1, 10] - [1, 31]
    setting [2, 0] - [3, 0]
      setting_name [2, 0] - [2, 11]
      setting_value [2, 13] - [2, 37]
  section [4, 0] - [5, 0]
    section_name [4, 0] - [5, 0]
      text [4, 1] - [4, 16]
  comment [5, 0] - [6, 0]
    text [5, 1] - [5, 11]
  comment [6, 0] - [7, 0]
    text [6, 1] - [6, 22]
  ERROR [7, 0] - [7, 2]
    setting_name [7, 0] - [7, 2]
  comment [7, 2] - [8, 0]
    text [7, 3] - [7, 28]

``

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions