Home » Modeling » TMF (Xtext) » Re: [xtext] Error in the generated PartitionScanner
Re: [xtext] Error in the generated PartitionScanner [message #19952] |
Fri, 08 August 2008 12:47  |
Eclipse User |
|
|
|
This is a multi-part message in MIME format.
--------------030806020307050809080108
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Sven Efftinge wrote:
> Hi Lorenzo,
>
> it would be best if you could provide a patch and file it in bugzilla,
> so that the issue is fixed for everybody :-)
>
there seem to be problems with bugzilla, so for the moment I'm posting
the patch here
hope this helps
Lorenzo
--
Lorenzo Bettini, PhD in Computer Science, DI, Univ. Torino
ICQ# lbetto, 16080134 (GNU/Linux User # 158233)
HOME: http://www.lorenzobettini.it MUSIC: http://www.purplesucker.com
http://www.myspace.com/supertrouperabba
BLOGS: http://tronprog.blogspot.com http://longlivemusic.blogspot.com
http://www.gnu.org/software/src-highlite
http://www.gnu.org/software/gengetopt
http://www.gnu.org/software/gengen http://doublecpp.sourceforge.net
--------------030806020307050809080108
Content-Type: text/x-diff;
name="scanner_with_escape_chars_for_strings.patch"
Content-Transfer-Encoding: 8bit
Content-Disposition: inline;
filename="scanner_with_escape_chars_for_strings.patch"
### Eclipse Workspace Patch 1.0
#P xtext.generator
Index: main/src/org/openarchitectureware/xtext/editor/Utilities.xpt
============================================================ =======
RCS file: /cvsroot/architecturware/oaw_v4/xtext/xtext.generator/main/s rc/org/openarchitectureware/xtext/editor/Utilities.xpt,v
retrieving revision 1.6.2.3.2.1
diff -u -r1.6.2.3.2.1 Utilities.xpt
--- main/src/org/openarchitectureware/xtext/editor/Utilities.xpt 31 May 2008 12:57:18 -0000 1.6.2.3.2.1
+++ main/src/org/openarchitectureware/xtext/editor/Utilities.xpt 8 Aug 2008 16:16:50 -0000
@@ -103,8 +103,8 @@
rules.add(new MultiLineRule("/*","*/", comment));
rules.add(new SingleLineRule("//", "", comment));
�ENDIF-�
- rules.add(new MultiLineRule("\"","\"", string));
- rules.add(new MultiLineRule("'","'", string));
+ rules.add(new MultiLineRule("\"","\"", string, '\\'));
+ rules.add(new MultiLineRule("'","'", string, '\\'));
return rules;
}
--------------030806020307050809080108--
|
|
| | | | | |
Re: [xtext] Error in the generated PartitionScanner [message #21435 is a reply to message #21418] |
Sat, 23 August 2008 13:10  |
Eclipse User |
|
|
|
Scott wrote:
> It seems to me that the problem is that the STRING definition is
> incorrect. See this thread for my explanation of why I think this:
>
> http://www.openarchitectureware.org/forum/viewtopic.php?show topic=9640
>
> Also, should I be posting on this newsgroup or that one?
>
As I also answered to that thread:
Actually, concerning the bug
https://bugs.eclipse.org/bugs/show_bug.cgi?id=243608, which
now should be fixed in the CVS, the strings with backslashed quotes used
to work correctly as before (the parser used to parse it correctly), it
was the highlighter that was wrong...
--
Lorenzo Bettini, PhD in Computer Science, DI, Univ. Torino
ICQ# lbetto, 16080134 (GNU/Linux User # 158233)
HOME: http://www.lorenzobettini.it MUSIC: http://www.purplesucker.com
http://www.myspace.com/supertrouperabba
BLOGS: http://tronprog.blogspot.com http://longlivemusic.blogspot.com
http://www.gnu.org/software/src-highlite
http://www.gnu.org/software/gengetopt
http://www.gnu.org/software/gengen http://doublecpp.sourceforge.net
|
|
|
Goto Forum:
Current Time: Wed Sep 17 16:43:29 EDT 2025
Powered by FUDForum. Page generated in 0.10871 seconds
|