mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
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:
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user