matthiasblaesing opened a new pull request, #8617: URL: https://github.com/apache/netbeans/pull/8617
NetBeans allows users to configure whether to keep the occurence hightlighting when the cursor is moved off the origin symbol. If "Keep Marks" is enabled the highlights are kept until another symbol is marked by the caret. If it is disabled the highlights are removed once the caret is not on the symbol anymore. There are two problems: - the CSL integration of OccurrenceFinder ignores updates with empty highlights (essentially "Keep Marks" was always on for CSL languages) - the marks are cleared always and thus without the problem in the CSL integration would act as if "Keep Marks" is always off Start point: Caret is inside the bounds of the second occurrence of variable `$var2`. All occurrences of `$var2` are highlighted:  "Keep Marks" is disabled:  Now the caret is moved off the variable and into the empty line 8. Before this change (variables `$var2` are still highlighted):  After the change the highlighting is removed in that case:  Closes: #8581 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
