Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

注释错误,提示不明显 #337

Open
javamonkey opened this issue Mar 15, 2018 · 2 comments
Open

注释错误,提示不明显 #337

javamonkey opened this issue Mar 15, 2018 · 2 comments

Comments

@javamonkey
Copy link
Owner

java.lang.ClassCastException: org.antlr.v4.runtime.tree.ErrorNodeImpl cannot be cast to org.antlr.v4.runtime.ParserRuleContext
at org.beetl.core.AntlrProgramBuilder.build(AntlrProgramBuilder.java:235)
at org.beetl.core.engine.DefaultTemplateEngine.createProgram(DefaultTemplateEngine.java:60)

当注释错误的时候
<%
/* dsfsdfsdf */
var a=1;

*/

%>
${a}

@javamonkey
Copy link
Owner Author

>>06:47:35:缺少符号(PARSER_MISS_ERROR):; 位于3行 资源:/hello.txt 缺少输入在 ';' 后面, 期望 <EOF> 1|<% 2|/* dsfsdfsdf */ 3|var a=1; 4| 5|*/ 6| 7|%>

@javamonkey
Copy link
Owner Author

`
<%
/* dsfsdfsdf
var a=1;

%>
${a}
`

这种注释情况,缺少注释,应该警告,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant