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 271040 - Twig syntax error with {% endset %}
Summary: Twig syntax error with {% endset %}
Status: RESOLVED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: Twig (show other bugs)
Version: 8.2
Hardware: All All
: P3 normal (vote)
Assignee: junichi11
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-07-05 20:20 UTC by ThomasLandauer
Modified: 2017-08-10 02:03 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 ThomasLandauer 2017-07-05 20:20:03 UTC
This gives me a syntax error ("Unopened 'endset' block") at line 3:

{% set test -%}
    foo
{% endset %}

When I remove the `-` from the `set`-line, the syntax error disappears.
Comment 1 junichi11 2017-08-07 01:24:02 UTC
Thanks for reporting it!

I'll fix it.
Comment 2 junichi11 2017-08-08 00:14:27 UTC
Fixed.

http://hg.netbeans.org/web-main/rev/b52e539b2358

@ThomasLandauer
Could you verify it when it is available in a dev build[1]? (Probably, tomorrow or later)

[1] http://bits.netbeans.org/download/trunk/nightly/latest/

Thanks.
Comment 3 ThomasLandauer 2017-08-09 16:26:11 UTC
I just checked with Build 201708090001 and the issue is still there.

But if you say you fixed it, I'm sure you did fix it - so I'll just wait for the next release :-)
Comment 4 junichi11 2017-08-09 21:05:09 UTC
A message is added automatically if it is available in a dev build. Please wait a while :)

Thanks.
Comment 5 Quality Engineering 2017-08-10 02:03:06 UTC
Integrated into 'main-silver', will be available in build *201708100001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/b52e539b2358
User: Junichi Yamamoto <junichi11@netbeans.org>
Log: #271040 - Twig syntax error with {% endset %}