TypeFox / yang-lsp

A Language Server for YANG
http://www.yang-central.org
Apache License 2.0
52 stars 13 forks source link

GH-149: Added name support for revision statements. #150

Closed kittaakos closed 5 years ago

kittaakos commented 5 years ago

So they will show up in the Outline. The name will be the revision date.

Closes: #149.

Signed-off-by: Akos Kitta kittaakos@typefox.io


For reviewers:

Model:

module abc {
    yang-version 1.1;
    namespace abc;
    prefix a;
    revision 2018-10-10 {
          a:version 4;
          a:release 5;
          a:correction 6;
    }
    revision 2018-09-10 {
          a:version 1;
          a:release 2;
          a:correction 3;
    }
    extension version {
        argument value;
    }
    extension release {
        argument value;
    }
    extension correction {
        argument value;
    }
}

Before the change:

screen shot 2018-11-12 at 10 51 17

After the change:

screen shot 2018-11-12 at 13 50 58