Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Eliminate uneccesary calls to isRangeCommentedOrString #346
Description of the Change
By design, brackets inside strings or comments are not matched. The previous behavior was that when the cursor was next to any bracket, even a bracket inside a comment or string, a search was performed for that bracket's closing pair. That search passes over comment or string scopes, so if a line read
Do match brackets inside strings and comments. This has already been shown to be a bad idea.
Much faster performance in large files with many brackets. For instance, in language-latex, the following is considered a string scope: