bobbylight / RSyntaxTextArea

A syntax highlighting, code folding text editor for Java Swing applications.
BSD 3-Clause "New" or "Revised" License
1.12k stars 259 forks source link

Periods and commas marked in "Marked Occurrences" #581

Closed bobbylight closed 2 days ago

bobbylight commented 2 days ago

Description Most languages render the ,, ;, and . chars as "identifiers" for aesthetic purposes. This has the side effect of the "Marked Occurrences" support identifying them as tokens to mark all occurrences for.

At best this is unexpected, and at worst it can cause the editor to hang for a bit when marking occurrences on huge files with lots of these characters.

Steps to Reproduce Specific steps to reproduce the behavior:

  1. Open a Java file with those characters (many other languages share this bug as well)
  2. Put the caret before or after one instance of the characters
  3. Wait 1 second

Expected behavior Nothing is highlighted

Actual behavior The "marked occurrences" support marks all instances of your character.