parse skins for comments like this:

<% // comment %>

helma doesn't call macros with that syntax, but uses
parameter default="xxx" if it is included in the comment tag!
This commit is contained in:
stefanp 2003-03-11 10:47:30 +00:00
parent 210aed5197
commit 0879e2e1ff

View file

@ -53,6 +53,9 @@ public class DocSkin extends DocFileElement {
String str = (new String (source, i+2, j-i)).trim (); String str = (new String (source, i+2, j-i)).trim ();
if (str.endsWith("%>")) if (str.endsWith("%>"))
str = str.substring (0, str.length()-2); str = str.substring (0, str.length()-2);
if (str.startsWith ("//")) {
parseComment (str);
} else {
if (str.indexOf (" ")>-1) if (str.indexOf (" ")>-1)
str = str.substring (0, str.indexOf(" ")); str = str.substring (0, str.indexOf(" "));
if (str.indexOf(".")>-1 && if (str.indexOf(".")>-1 &&
@ -63,6 +66,7 @@ public class DocSkin extends DocFileElement {
) && !partBuffer.contains(str)) { ) && !partBuffer.contains(str)) {
partBuffer.add (str); partBuffer.add (str);
} }
}
start = j+2; start = j+2;
} }
i = j+1; i = j+1;