[quote=“vitaLee”]i was thinking the same.
match the first bracket you find in either direction, that’s why it’s called BracketHighlighter [/quote]
Its just fitting it into the algorithm is a little tricky. It was streamlined to do it one way, but to do it the way you are suggesting may take me a while to do well (if I get it working good at all). Also, it is not on the top of my list of things to do since it would also be big headache to make happen.
What I plan to do in the next week is to resolve my current issue with strings:
- I don’t like that I am wasting time detecting regex conventions for different languages in strings, and I think it is silly I am highlighting “/” in regex strings. So I am thinking I want to only highlight quoted strings, but still allow the searching for and highlighting of internal string brackets in any non-quoted strings. If no brakcets are found in a non-quoted string, I want to ignore the string and find the next parent bracket. It would be a more generic support for brackets inside any string, and it would support more languages.
- This could also apply to people who don’t want to highlight quotes, but still like to highlight brackets inside strings.