diff options
author | Claude Brisson <cbrisson@apache.org> | 2019-06-01 11:52:25 +0000 |
---|---|---|
committer | Claude Brisson <cbrisson@apache.org> | 2019-06-01 11:52:25 +0000 |
commit | 34f50177dca6ad3ea5a20747661a5da97b428b21 (patch) | |
tree | a9f287297319264fd29c80002573a2411a9b7d87 /velocity-engine-core/src | |
parent | f1dae6f6d34a46fbf2ac570e11c989fca7328dd3 (diff) | |
download | apache-velocity-engine-34f50177dca6ad3ea5a20747661a5da97b428b21.tar.gz |
[engine][VELOCITY-917] Parser fix
git-svn-id: https://svn.apache.org/repos/asf/velocity/engine/branches/parser_experiments@1860478 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'velocity-engine-core/src')
-rw-r--r-- | velocity-engine-core/src/main/parser/StandardParser.jjt | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/velocity-engine-core/src/main/parser/StandardParser.jjt b/velocity-engine-core/src/main/parser/StandardParser.jjt index c87f672b..ffb44384 100644 --- a/velocity-engine-core/src/main/parser/StandardParser.jjt +++ b/velocity-engine-core/src/main/parser/StandardParser.jjt @@ -563,11 +563,6 @@ TOKEN_MGR_DECLS: private boolean inComment; private boolean inSet; - public char dollar = '$'; - public char hash = '#'; - public char arobase = '@'; - public char star = '*'; - /** * Our own trace method. Use sparsingly in production, since each * and every call will introduce an execution branch and slow down parsing. @@ -1826,7 +1821,7 @@ boolean Directive(boolean afterNewline) : if ( d == null) { - if( directiveName.startsWith("@") ) + if( directiveName.charAt(0) == at ) { // block macro call of type: #@foobar($arg1 $arg2) astBody #end directiveType = Directive.BLOCK; |