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 184264 - unexpected symbols errors in style tag with custom Smarty delimiters
Summary: unexpected symbols errors in style tag with custom Smarty delimiters
Status: RESOLVED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: Smarty (show other bugs)
Version: 7.2
Hardware: PC Windows XP
: P3 normal (vote)
Assignee: Martin Fousek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-15 11:31 UTC by nbphpuser
Modified: 2012-06-20 05:50 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 nbphpuser 2010-04-15 11:31:02 UTC
getting error:
Unexpected symbols found ";"
Unexpected symbols found "
"


wit code:

<div style="width:{T{$l.width}T}">bar</div>
Comment 1 nbphpuser 2010-04-15 12:02:13 UTC
custom delimiters was defined globally
Comment 2 nbphpuser 2010-04-15 12:03:09 UTC
custom delimiters were defined globally
Comment 3 Martin Fousek 2010-04-21 10:52:46 UTC
fixed in http://hg.netbeans.org/main/contrib/rev/69f4f57f3a36

should be working well in version 1.21 - it could be tomorrow on Dev UC
Comment 4 Martin Fousek 2010-04-22 06:13:39 UTC
So ver. 1.21 is on Dev UC now, so feel free to try if all your troubles with editor Hints were fixed or not.
Comment 5 nbphpuser 2010-05-04 14:41:06 UTC
If you add 'px' after closing delimiter, error is still there

<div style="width:{T{$l.width}T}px">bar</div>
Comment 6 Martin Fousek 2011-03-02 23:07:14 UTC
From behavior it seems that metaData which are holding delimiters aren't acting in unified way for delimiters entered in project properties and in the options. I found out that the metaData support is written really badly, so I will fix it soon.
Comment 7 Quality Engineering 2011-08-27 14:15:21 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/0469afeee1ea
User: Martin Fousek <marfous@netbeans.org>
Log: #184263: syntax errors, #184264: unexpected symbols errors
Comment 8 Martin Fousek 2011-11-03 07:32:49 UTC
OK, so:
<div style="width:{T{$l.width}T}">bar</div> - works well
<div style="width:{T{$l.width}T}px">bar</div> - works well
<div style="width:{T{$l.width}T}px;">bar</div> - syntax error

Just the last case has to be still fixed. BTW, it works well with default {,} delimiters and now we are also supporting Smarty3 syntax. So I would probably recommend to stop using custom delimiters and upgrade to the newest smarty version where are troubles with mixed JS/Smarty resolved in more elegant way.
Comment 9 efremmc2 2012-06-20 04:08:10 UTC
I can not repeat this error - as it looks good to me.

Product Version: NetBeans IDE 7.2 RC1 (Build 201206141830)
Java: 1.7.0_05; Java HotSpot(TM) Client VM 23.1-b03
System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nb)
Comment 10 Martin Fousek 2012-06-20 05:50:15 UTC
(In reply to comment #9)
> I can not repeat this error - as it looks good to me.

Me neither. Thanks efremmc2 for trying that out - probably there was changed something in css editor. Rest of the issue was resolved by the web-main #0469afeee1ea so marking as fixed.