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 221484 - HEREDOC syntax highlighting
Summary: HEREDOC syntax highlighting
Status: RESOLVED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.2
Hardware: All All
: P3 normal (vote)
Assignee: Ondrej Brejla
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-05 13:19 UTC by dagguh
Modified: 2012-11-09 02:53 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (432.35 KB, text/plain)
2012-11-05 13:19 UTC, dagguh
Details

Note You need to log in before you can comment on or make changes to this bug.
Description dagguh 2012-11-05 13:19:52 UTC
$x = <<<ABC
foo bar
baz
ABC;

The enclosing ABC is not highlighted.
When I delete the space between foo and bar, ABC becomes correctly coloured.
When I write a space after baz, ABC becomes correctly coloured.


Product Version = NetBeans IDE Dev (Build 201210280001)
Operating System = Linux version 3.2.0-32-generic-pae running on i386
Java; VM; Vendor = 1.7.0_09
Runtime = OpenJDK Client VM 23.2-b09
Comment 1 dagguh 2012-11-05 13:19:59 UTC
Created attachment 127142 [details]
IDE log
Comment 2 Ondrej Brejla 2012-11-05 14:20:02 UTC
Lexer for heredocs and nowdocs is a bit crappy, I know that :/ Will try to look at it. Thanks.
Comment 3 Ondrej Brejla 2012-11-05 15:50:01 UTC
P3 since it breaks coloring of whole file.
Comment 4 Ondrej Brejla 2012-11-05 16:05:14 UTC
Fixed in web-main #255d4fbedfd3
Comment 5 Quality Engineering 2012-11-07 03:44:47 UTC
Integrated into 'main-golden', will be available in build *201211070001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/255d4fbedfd3
User: Ondrej Brejla <obrejla@netbeans.org>
Log: #221484 - HEREDOC syntax highlighting
Comment 6 Quality Engineering 2012-11-09 02:53:09 UTC
Integrated into 'main-golden', will be available in build *201211090001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/93e474f63b06
User: Ondrej Brejla <obrejla@netbeans.org>
Log: #221484 cont'd - HEREDOC syntax highlighting (improved whole lexing)