TypeFox / yang-lsp

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

pattern match with escaped-double quote being reported as error #227

Open raven42 opened 1 year ago

raven42 commented 1 year ago

I'm seeing an issue when using this along with the vscode extension where an error is reported in a regular expression string in the pattern statement when a double quote is used and escaped as per the yang RFC standards. The only way I can seem to fix this is adding two double-quotes instead of an escaped double-quote.

Example error: image

Two double-quotes seems to fix this: image

My understanding is a double-quote should be escaped, not two double-quotes to have it recognized.

mvystrcil commented 5 months ago

Same issue here, also have some escaped double quotes in our codebase.