ujhelyiz/EMF-IncQuery — Issue #3: Serializing comments with patterns
Author: ujhelyiz
Created: 2012-03-01 17:16:00+00:00
State: open
Labels: Code generator

When serializing a multiline comment inside head comments, it causes Java build errors in the generated code, as both languages have the same comment syntax.

E.g. the following file content results a compile error in the SecondPatternMatcher file because of the misplaced '*/' terminals.

```
package hu.bme.mit.test
import "http://www.eclipse.org/emf/2002/Ecore"
import "http://www.eclipse.org/viatra2/patternlanguage/core/PatternLanguage"

/*pattern patternParameterNames(Pattern,ParameterName) = {
Pattern.parameters.name(Pattern,ParameterName);
}*/
pattern secondPattern(N, N2, Name3) = {
EObject(N3);
EAttribute(Name3);
}
```