aboutsummaryrefslogtreecommitdiff
path: root/velocity-engine-core/src/main/java/org/apache/velocity/runtime/parser/node/ASTDirective.java
diff options
context:
space:
mode:
Diffstat (limited to 'velocity-engine-core/src/main/java/org/apache/velocity/runtime/parser/node/ASTDirective.java')
-rw-r--r--velocity-engine-core/src/main/java/org/apache/velocity/runtime/parser/node/ASTDirective.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/velocity-engine-core/src/main/java/org/apache/velocity/runtime/parser/node/ASTDirective.java b/velocity-engine-core/src/main/java/org/apache/velocity/runtime/parser/node/ASTDirective.java
index a8bf65e2..82cf3b4e 100644
--- a/velocity-engine-core/src/main/java/org/apache/velocity/runtime/parser/node/ASTDirective.java
+++ b/velocity-engine-core/src/main/java/org/apache/velocity/runtime/parser/node/ASTDirective.java
@@ -112,7 +112,7 @@ public class ASTDirective extends SimpleNode
*/
t = getFirstToken();
int pos = -1;
- while (t != null && (pos = t.image.lastIndexOf(rsvc.hash())) == -1)
+ while (t != null && (pos = t.image.lastIndexOf(rsvc.getParserConfiguration().getHashChar())) == -1)
{
t = t.next;
}
@@ -147,7 +147,7 @@ public class ASTDirective extends SimpleNode
directive.setLocation(t.beginLine, t.beginColumn, getTemplate());
directive.init(rsvc, context, this);
}
- else if( directiveName.startsWith(String.valueOf(rsvc.at())) )
+ else if( directiveName.startsWith(String.valueOf(rsvc.getParserConfiguration().getAtChar())) )
{
if( this.jjtGetNumChildren() > 0 )
{
@@ -312,7 +312,7 @@ public class ASTDirective extends SimpleNode
{
writer.write(prefix);
writer.write(morePrefix);
- writer.write(rsvc.hash());
+ writer.write(rsvc.getParserConfiguration().getHashChar());
writer.write(directiveName);
writer.write(postfix);
}