Skip to content

[FIL-678] Use esprima to validate javascript code in realtime#420

Open
pchaussalet wants to merge 2 commits into
montagestudio:masterfrom
pchaussalet:realtime-code-calidation_FIL-678
Open

[FIL-678] Use esprima to validate javascript code in realtime#420
pchaussalet wants to merge 2 commits into
montagestudio:masterfrom
pchaussalet:realtime-code-calidation_FIL-678

Conversation

@pchaussalet

Copy link
Copy Markdown

On every javascript code change, a code parsing is ran using esprima. If a syntax error is found (ie. esprima throws an exception), a mark is added to the corresponding line and the tokens before and after the error location are underlined.
The syntax parsing is done in a specific service, so it should be easy to plug another parser, like one that could parse and validate css or html code.

@declarativ-bot

Copy link
Copy Markdown

Can one of the admins verify this patch? (Reply "ok to test")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants