[BLUEJ-1271] Bracket matching doesn't understand comments
The code for finding a matching bracket in the editor is too naive. It scans for matching brackets and while it knows to skip string/char literals, it doesn't account for comments. So if the user puts an unterminated string/char literal or a mismatched bracket in a comment, this will be counted as part of the matching. (Add "// {" in your code and BlueJ will match the bracket.)
Issue metadata
- Issue type: Bug
- Priority: Medium
- Fix versions: 4.2.2