Uploaded image for project: 'yangtools'
  1. yangtools
  2. YANGTOOLS-1129

YANG parser is indicating wrong start of statement

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Low Low
    • 4.0.14, 5.0.6, 3.0.17
    • None
    • parser
    • None

      Our current parser grammar parses YANG files as if they are statements. This is true in general, but files can have leading and trailing whitespace, which is not part of the statement itself.

      We therefore have a bit of a mess in what constitutes a statement – i.e. we allow it to start with whitespace. This leads to source references to point to thee start of whitespace rather that to the start of the keyword for a particular statement.

            rovarga Robert Varga
            rovarga Robert Varga
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: