Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-dev] templates - endless loop

Hi,
I need to add the following template $max(expr1, expr2).

Adding to default-templates.xml
<template name="$$max" description="%$$max"
context="org.eclipse.cdt.ui.text.templates.c"
id="org.eclipse.cdt.ui.text.templates.c.$$max"
enabled="true">$$max(${expr1}, ${expr2})</template>

and to default-templates.properties
$$max = $$max

Code completion during the first time works fine completing to
$max(expr1, expr2).
But trying once again $CTRL-Space, on the second time causes to endless loop.

Is it something wrong in the definition of template?
Thank you
David


Back to the top