I’m assuming this is not intended behaviour:

This compiles:

completion template MainClass : "class Main" =
  	"class " <ID:ID> "{\n\tpublic static void main(String[] argv) {\n\t\t System.out.println("<Exp:Exp>");\n\t}\n}" (blank)

And completes on “cla”, but does not complete on e.g. “class Ma<Ctrl-space>”

EDIT:

OK, not the best example, as the “Main” would be deleted. This example fits better:

completion template MainMethod : "public static void main" = 
 	"public static void main(String[] argv) {\n\t System.out.println("<Exp:Exp>");\n}" (blank)

Does not complete on “public stat<Ctrl-Space>”

Submitted by Arjen on 8 October 2013 at 11:05

On 8 October 2013 at 16:11 Gabriël Konat tagged lab

On 8 October 2013 at 16:11 Gabriël Konat tagged completion

On 8 October 2013 at 16:13 Gabriël Konat commented:

I don’t think our syntactic completions currently support completing in the middle of a template like "public static void main". What if the template has "public " "static " "void " "main"?

Log in to post comments