apidom icon indicating copy to clipboard operation
apidom copied to clipboard

apidom-parser-adapter-yaml-1-2: bug in parsing mapping keys longer than `128` characters

Open char0n opened this issue 1 year ago • 1 comments

Reported to upstream YAML 1.2 grammar in:

  • https://github.com/ikatyang/tree-sitter-yaml/issues/59
  • https://github.com/tree-sitter-grammars/tree-sitter-yaml/issues/6

Unfortunately there is not much we can do, except to wait for the upstream YAML 1.2 lexical analyzer to fix it or change the lexical analyzer we use.

Workaround

Unfortunately the only current workaround is to switch format from YAML 1.2 to JSON.

char0n avatar Apr 12 '24 07:04 char0n

There is a new YAML tree-sitter grammar being worked on. This issue will be addressed there. More info in https://github.com/swagger-api/apidom/issues/4033

char0n avatar Apr 16 '24 07:04 char0n