Arduino Asterisk Parsing Error

Hello. I'm new to the forum, so i hope that i'm posting in the right place.

I'm currently working on an OSC pattern matching (similar to regex) for the Arduino. An important matching symbol is the ASTERISK ( * ). OSC messages are backslash delimited and when put a pattern like this for example:

OSCMessage.match("/*/?");

Even thought the "/*" is clearly in quotes, i get the error:

java.lang.RuntimeException: Missing the */ from the end of a /* comment */
	at processing.app.Sketch.scrubComments(Sketch.java:1738)
	at processing.app.preproc.PdePreprocessor.writePrefix(PdePreprocessor.java:105)
	at processing.app.Sketch.preprocess(Sketch.java:1336)
	at processing.app.Sketch.preprocess(Sketch.java:1288)
	at processing.app.Sketch.build(Sketch.java:1570)
	at processing.app.Sketch.build(Sketch.java:1552)
	at processing.app.Editor$DefaultRunHandler.run(Editor.java:1954)
	at java.lang.Thread.run(Thread.java:680)

I've tried alternates to the "/*" like "\u002A", but that also doesn't work. this seems like an IDE bug to me.

any work arounds would be greatly appreciated.

Not sure if it is error, but try a completely different approach until you work it out.

char c_In[] = { '/', '*', '/', '?', '\0' };
OSCMessage.match(c_In);
OSCMessage.match("/" "*/?");

Should also work.

Hi,

I've also found this error when constructing a HTTP 1.1 header

WiFly.println("Accept: */*");

Did it get reported to those who need to know?

Geoff

Please check here...
http://code.google.com/p/arduino/issues/list

[quote author=Coding Badly link=topic=85818.msg692425#msg692425 date=1329344636]
Please check here...
http://code.google.com/p/arduino/issues/list
[/quote]I didn't find it, so added Issue 817: Comment /* */ parsing should ignore these sequences in string constants, hopefully it isn't a duplicate but if it is at least it's covered.

Cheers !
Geoff