TypeFox / yang-lsp

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

Namespace prefix "or" renders error if referenced #193

Closed andreasjakobik closed 3 years ago

andreasjakobik commented 3 years ago

Hi,

If a type is referenced using the prefix name "or", then validation error occurs.

For example, the following statement:

type or:origin-ref;

triggers the following error message:

no viable alternative at input 'or'

Seems "or" is parsed wrongly as a boolean operator? (Since these prefixes are defined in ietf standard yang modules, they cannot be easily changed.)

Thanks, Andreas