Ensure errors in ACE NRJavaScript mode are on valid lines

In the case of an "Unmatched {" error, it flags the { on
the line we wrap the user's code in. That doesn't help the
user.

This fix moves such an error to the first valid { in the file.

It handles ignoring { in comments or strings. It fails to ignore
{ inside regex. But that's an edge case on top of an edge case.
This commit is contained in:
Nick O'Leary
2020-09-24 16:29:05 +01:00
parent b8b0247717
commit 81dc3de26a
2 changed files with 58 additions and 2 deletions

File diff suppressed because one or more lines are too long