Created attachment 141530 [details]
NetBeans 3.3 Matching Parentheses highlighting
The parentheses are no longer highlighted in Apache *.conf files, like it was in NetBeans 7.3 (see attached screenshot of 7.3).
I use this a lot, when I'm creating the Apache pseudo-regex for RewriteRules like this one:
RewriteRule ^/(bas(e|ket)ball|angels|dodgers|clippers|lakers|hockey|ducks|nfl|college(sport)?s?|ncaa|uci|ucla|usc)/?$ /common/go/index.php?go=$1 [R=permanent,L]
My apologies for the extra noise if this is a just setting I haven't found in NetBeans 7.4!
OS: Mac OS X Mavericks 10.9
$ java -version
java version "1.7.0_45"
Java(TM) SE Runtime Environment (build 1.7.0_45-b18)
Java HotSpot(TM) 64-Bit Server VM (build 24.45-b08, mixed mode)
So, I tried to investigate it and the "cause" is:
- in NB 7.3.1, LegacyEssMatcher returns null from createMatcher() method;
- in NB dev, LegacyEssMatcher does not return null from createMatcher() method (the SyntaxSupport class is instance of CslEditorKit$1, see line 152);
Of course, I have no idea whether this is the real cause but at least something where to start debugging, I hope :)
Will attach 2 sample files.
Created attachment 161546 [details]
Sample Apache Conf file
Created attachment 161547 [details]
Sample INI file
Thanks for following up on this! It's been driving me batty for years!
(In reply to webmaestro from comment #5)
> Thanks for following up on this! It's been driving me batty for years!
We know, really sorry for that! We will do our best and hopefully this issue will be fixed soon.
Unconditionally forgiven! ;-)
Have a great day!
Sváťo, do you think this could be part of the Patch 1 for NB 8.2?
Hm, I could not determine what the feature was working before, but CSL sort of damages the backward-compatible bridge from brace matching API to ExtSyntaxSupport; I could probably do better, but I decided to "fix" the issue by sending back a special value when CSL actually does not have a handler for brace matching.
The editor recognizes it *specifically* if coming from the compatibility bridge and delegates to the next handler.
Fixed in jet-main#a7edd15593c5
Integrated into 'main-silver', will be available in build *201704020002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
User: Svata Dedic <email@example.com>
Log: #237632: allow additional brace matching handlers if CSL does not recognize braces