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

YANG parser is indicating wrong start of statement

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: