Skip to content
Commit 2ef1f7d3 authored by Rene Saarsoo's avatar Rene Saarsoo
Browse files

Replace default value parsing with simpler implementation.

Instead of using JsLiteralParser, we just scan the string and attempt to
balance braces.  It's not really fool-proof, but should easily cover
more than 99% of use cases.  The only problem is when a default value
contains a string with "[" or "]" in it - but then it can be just
documented manually.

Getting rid of this use of JsLiteralParser and JsLiteralBuilder will
allow us to get rid of those classes together with JsParser completely -
replacing them with EsprimaJS.
parent 71a42c10
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment