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 243278 - Inline endif tag parse missing
Summary: Inline endif tag parse missing
Status: VERIFIED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: Twig (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Ondrej Brejla
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-26 08:05 UTC by Zoff
Modified: 2014-04-24 11:25 UTC (History)
1 user (show)

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 Zoff 2014-03-26 08:05:54 UTC
Inline endiftag is not detected if there's no space between {% and endif

Example code:

{%if condition%}This should be correct{%endif%}

Error received: Unclosed 'if'

In RC1 this happened for every if block, now it stand for inline ones.
Comment 1 Zoff 2014-03-26 08:22:01 UTC
EDIT: The same issue stand even if tags are not on the same line.
Comment 2 Zoff 2014-03-26 08:29:42 UTC
This issue has a strange behaviour on nested if:

Example code:
{% if cond1 %} <-- ERROR ON THIS TAG
    {% if cond2 %}
    <something>
    {%endif%}
{% endif%}
Comment 3 Ondrej Brejla 2014-04-11 10:22:33 UTC
Fixed in web-main #831de7607152
Comment 4 Quality Engineering 2014-04-12 05:06:19 UTC
Integrated into 'main-silver', will be available in build *201404120001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/831de7607152
User: Ondrej Brejla <obrejla@netbeans.org>
Log: #243278 - Inline endif tag parse missing
Comment 5 Vladimir Riha 2014-04-15 13:59:44 UTC
Verified

Product Version: NetBeans IDE Dev (Build 201404150001)
Java: 1.8.0; Java HotSpot(TM) Client VM 25.0-b70
Runtime: Java(TM) SE Runtime Environment 1.8.0-b132
System: Linux version 3.2.0-60-generic-pae running on i386; UTF-8; en_US (nb)
Comment 6 Ondrej Brejla 2014-04-18 10:54:06 UTC
Transplanted to release80 branch.
Comment 7 Quality Engineering 2014-04-24 02:05:16 UTC
Integrated into 'releases/release80', will be available in build *201404240045* or newer. Wait for official and publicly available build.

Changeset: http://hg.netbeans.org/releases/rev/01887f03d448
User: Ondrej Brejla <obrejla@netbeans.org>
Log: #243278 - Inline endif tag parse missing
(transplanted from 831de76071527b26f82e8e0be7c9ceb8caeaece9)
Comment 8 Vladimir Riha 2014-04-24 11:25:44 UTC
verified in patch1

Product Version: NetBeans IDE 8.0 (Build 201403101706)
Updates: NetBeans IDE is updated to version NetBeans 8.0 Patch 1
Java: 1.8.0_05; Java HotSpot(TM) Client VM 25.5-b02
Runtime: Java(TM) SE Runtime Environment 1.8.0_05-b13
System: Linux version 3.2.0-60-generic-pae running on i386; UTF-8; en_US (nb)