Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.
This repository was archived by the owner on Jul 9, 2025. It is now read-only.

Can LU parser parse with syntax error file? #2267

@zhixzhan

Description

@zhixzhan

Is your feature request related to a problem? Please describe.

In inline lu editor, final content is make up from luParser function looks like,

luFile.updateSection(content)

but when content have some syntax error, it would failed.

more precisely:

  1. when content have syntax error, this function call won't success.
  2. when luFile have syntax error, both parse/update would failed.

Describe the solution you'd like

So can LU parser handle those better? for example,

  1. Can parse file if it's not a fatal syntax error.
  2. Can updateSection(invalidContent), and wrap/encode invalidContent to be valid.
    3, Ensure update function's return always can be parse.

Describe alternatives you've considered

Currently lg parser looks like can handle most syntax error.
Untitled

Additional context

Metadata

Metadata

Labels

R9Release 9 - May 15th, 2020

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions