yang-lsp icon indicating copy to clipboard operation
yang-lsp copied to clipboard

LSP regex handling inconsistent with YANG RFC

Open esmasth opened this issue 1 year ago • 1 comments

A YANG pattern "[a-zA-Z0-9!$%\\^()\\[\\]_\\-~{}.+]*" is flagged as type-error. As a second opinion CESNET/libyang yangre tool as well as mbj4668/pyang were used to check whether the regex is consistent, and it was found to be acceptable. Possibly need adjustment to regex handling in yang-lsp.

esmasth avatar Mar 25 '24 10:03 esmasth

Possibly same underlying root cause as #227

Changing "[a-zA-Z0-9!$%\\^()\\[\\]_\\-~{}.+]*" to '[a-zA-Z0-9!$%\^()\[\]_\-~{}.+]*' makes the error go away.

esmasth avatar Aug 22 '24 20:08 esmasth