This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 236943 - Hash sign incorrectly marked as comment
Summary: Hash sign incorrectly marked as comment
Status: VERIFIED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: Apache Config Files (show other bugs)
Version: 7.4
Hardware: All All
: P3 normal (vote)
Assignee: Ondrej Brejla
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-09 13:01 UTC by Vladimir Riha
Modified: 2013-10-11 12:55 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Riha 2013-10-09 13:01:19 UTC
I have following lines in .htaccess file:

RedirectMatch permanent ^/synergy_nb/synergy~synergy-code/((?!(server|client)).*)/(.*)$ /synergy_nb/synergy~synergy-code/client/app/#/title/$1/$3
RedirectMatch permanent ^/synergy_nb/synergy~synergy-code/((?!(server|client)).*)$ /synergy_nb/synergy~synergy-code/client/app/#/title/$1
RedirectMatch permanent ^/synergy_nb/synergy~synergy-code/$ /synergy_nb/synergy~synergy-code/client/app/

You can see that the redirect url contains hash signs but in IDE, everything after # is gray as it would be comment, which is not in this case. I think # is considered as comment mark only if it is a first character on line, but I'm not sure about it.



Product Version: NetBeans IDE 7.4 (Build 201310012201)
Java: 1.7.0_45; Java HotSpot(TM) Client VM 24.45-b08
Runtime: Java(TM) SE Runtime Environment 1.7.0_45-b13
System: Linux version 3.2.0-48-generic-pae running on i386; UTF-8; en_US (nb)
Comment 1 Ondrej Brejla 2013-10-09 13:42:24 UTC
Fixed in web-main #29375c160647
Comment 2 Vladimir Riha 2013-10-09 13:50:45 UTC
Nice fixing time :) Thank you
Comment 3 Ondrej Brejla 2013-10-09 13:51:49 UTC
You're welcome :)
Comment 4 Vladimir Riha 2013-10-11 12:55:37 UTC
Verified

Product Version: NetBeans IDE Dev (Build 201310110001)
Java: 1.7.0_45; Java HotSpot(TM) 64-Bit Server VM 24.45-b08
Runtime: Java(TM) SE Runtime Environment 1.7.0_45-b18
System: Mac OS X version 10.8.5 running on x86_64; UTF-8; en_US (nb)