bug 414410: add template and highlight syntax for @extends tag
diff --git a/plugins/org.eclipse.koneki.ldt.ui/src/org/eclipse/koneki/ldt/ui/internal/editor/LuaDocumentorTags.java b/plugins/org.eclipse.koneki.ldt.ui/src/org/eclipse/koneki/ldt/ui/internal/editor/LuaDocumentorTags.java
index a502e56..3f5f815 100644
--- a/plugins/org.eclipse.koneki.ldt.ui/src/org/eclipse/koneki/ldt/ui/internal/editor/LuaDocumentorTags.java
+++ b/plugins/org.eclipse.koneki.ldt.ui/src/org/eclipse/koneki/ldt/ui/internal/editor/LuaDocumentorTags.java
@@ -19,13 +19,14 @@
public static final String TYPE = "@type"; //$NON-NLS-1$
public static final String RETURN = "@return"; //$NON-NLS-1$
public static final String USAGE = "@usage"; //$NON-NLS-1$
+ public static final String EXTENDS = "@extends"; //$NON-NLS-1$
private LuaDocumentorTags() {
// private constructor
}
public static String[] getTags() {
- return new String[] { MODULE, FUNCTION, PARAM, FIELD, TYPE, RETURN, USAGE };
+ return new String[] { MODULE, FUNCTION, PARAM, FIELD, TYPE, RETURN, USAGE, EXTENDS };
}
}
diff --git a/plugins/org.eclipse.koneki.ldt.ui/templates/luadocumentor-templates.properties b/plugins/org.eclipse.koneki.ldt.ui/templates/luadocumentor-templates.properties
index 0ae54b3..d7de6b6 100644
--- a/plugins/org.eclipse.koneki.ldt.ui/templates/luadocumentor-templates.properties
+++ b/plugins/org.eclipse.koneki.ldt.ui/templates/luadocumentor-templates.properties
@@ -12,3 +12,4 @@
fieldinparent.description=field declaration in parent type block
type.description=type declaration
return.description=return type declaration
+extends.description=extends type declaration
diff --git a/plugins/org.eclipse.koneki.ldt.ui/templates/luadocumentor-templates.xml b/plugins/org.eclipse.koneki.ldt.ui/templates/luadocumentor-templates.xml
index e2d01f2..daeb6d2 100644
--- a/plugins/org.eclipse.koneki.ldt.ui/templates/luadocumentor-templates.xml
+++ b/plugins/org.eclipse.koneki.ldt.ui/templates/luadocumentor-templates.xml
@@ -47,5 +47,12 @@
name="@return"
description="%return.description"
autoinsert="true">@return #${type} ${description}</template>
+
+<template
+ context="LuaDocumentorTemplateContextType"
+ id="org.eclipse.koneki.ldt.ui.templates.luadocumentor.extends"
+ name="@extends"
+ description="%extends.description"
+ autoinsert="true">@extends ${module}#${type} </template>
</templates>