Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 331991 - Parser should warn when there is anything on the Protected Area beginning line
Summary: Parser should warn when there is anything on the Protected Area beginning line
Status: CLOSED FIXED
Alias: None
Product: Acceleo
Classification: Modeling
Component: Core (show other bugs)
Version: 3.0.0   Edit
Hardware: PC Windows 7
: P3 enhancement
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-07 04:40 EST by Laurent Goubet CLA
Modified: 2010-12-20 05:05 EST (History)
1 user (show)

See Also:


Attachments
Patch (5.64 KB, patch)
2010-12-20 05:04 EST, Stephane Begaudeau CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Laurent Goubet CLA 2010-12-07 04:40:02 EST
Protected areas in Acceleo are identified through an unique ID. This ID is what is passed as parameter of the protected block :

[protected ('myID')]
[/protected]

This ID can contains whitespaces : we consider the "end of ID" to be the following carriage return. As such, protected areas such as :

<!--[protected ('myID')]-->
<!--[/protected]-->

or

[protected ('myID')][/protected]

won't work as expected (in the generated code, these would look like :

<!--Start of user code myID-->
<!--End of user code-->

and

Start of user code myIDEnd of user code

which mean that "something" is appended at the end of the ID, and Acceleo won't be able to match this ID when next generating.
Comment 1 Stephane Begaudeau CLA 2010-12-20 05:04:54 EST
Created attachment 185522 [details]
Patch

Contributed on HEAD available in Acceleo 3.1 M5.
Comment 2 Stephane Begaudeau CLA 2010-12-20 05:05:05 EST
Fixed