On Wed, Jan 17, 2018 at 6:09 AM, vitalije <[email protected]> wrote:
In the file from the previous post, there few special regex patterns that > make js importer fail. > Please file a separate issue for this. Problems here can almost certainly be fixed in js_i.scan_line and its helper, js_i.skip_regex. As noted in comments in js_i.scan_line, recognizing the start of a regex requires context-dependent state. The present comment is: QQQ Distinguishing the the start of a regex from a div operator is tricky: http://stackoverflow.com/questions/4726295/ http://stackoverflow.com/questions/5519596/ (, [, {, ;, and binops can only be followed by a regexp. ), ], }, ids, strings and numbers can only be followed by a div operator. QQQ These comments might be incomplete or just wrong. Any help with this code would be appreciated. > If you delete those lines 2595-2613 from jquery.terminal.js, importer will > successfully import the file. Looking in generated tree here are few > example nodes: > Perhaps the present code can be improved. I would suggest experimenting with an improved post pass. Edward -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/leo-editor. For more options, visit https://groups.google.com/d/optout.
