Community
Participate
Working Groups
Created attachment 192836 [details] Fix HEAD Template variable names can only contain ASCII characters. Templates like this one are rejected: System.out.println(${blöd:var} + " with element type " + ${hä:elemType(blöd)}); The patch allows all Java identifiers as names. I made a pass over my workspace to find similar problems as bug 341977, and that's the only other bad place I found.
Fixed in HEAD.
1. start Eclipse 2. start to use/load the templates ==> tons of exceptions and many templates disabled :-( For bg see also bug 21926.
Created attachment 192927 [details] Fix 2 (In reply to comment #2) > ==> tons of exceptions and many templates disabled :-( The problem is that the EBNF in TemplateTranslator was not honest. It didn't define 'identifier', and the implementation accepted \w++. To support existing clients, Fix 2 allows numbers at the start of an 'identifier' again and adjusts the grammar to reality. > For bg see also bug 21926. That bug is about template names. This bug only deals with the template pattern.
Verified in I20110425-1800. Also verified that exported templates which contain non-ASCII variables are silently ignored when imported into 3.6.x.