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 204254 - Smarty 3 templates syntax coloring
Summary: Smarty 3 templates syntax coloring
Status: RESOLVED DUPLICATE of bug 194674
Alias: None
Product: php
Classification: Unclassified
Component: Smarty (show other bugs)
Version: 7.1
Hardware: Macintosh Mac OS X
: P1 normal (vote)
Assignee: Martin Fousek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-26 08:12 UTC by Voxen
Modified: 2011-10-26 11:33 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Voxen 2011-10-26 08:12:01 UTC
Product Version = NetBeans IDE 7.1 Beta (Build 201109252201)
Operating System = Mac OS X version 10.7.2 running on x86_64
Java; VM; Vendor = 1.6.0_26
Runtime = Java HotSpot(TM) 64-Bit Server VM 20.1-b02-383

Smarty 3 allows Javascript curly braces { } to be used without the need to tag them as {literal} according there is a space or a carriage return after/before the braces.
See: http://www.smarty.net/docs/en/language.escaping.tpl

However Netbeans parser gets this wrong and believes there is an error after the first JS opening curly brace it finds.
This produce wierd results and make coding JS into Smarty templates almost impossible.
The parser should only consider as Smarty elements those who have no space/CR after/before the braces.
Comment 1 Martin Fousek 2011-10-26 11:33:35 UTC
It should be already implemented. Please give it a chance in any from latest builds:
http://bits.netbeans.org/download/trunk/nightly/latest/

*** This bug has been marked as a duplicate of bug 194674 ***