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

不支持取模 #6

Closed
popomore opened this issue Dec 20, 2012 · 2 comments
Closed

不支持取模 #6

popomore opened this issue Dec 20, 2012 · 2 comments
Labels

Comments

@popomore
Copy link
Contributor

好像测试用例里也没有

Error: Lexical error on line 361. Unrecognized text.
...if(0==$velocityCount%2) class="split" #e
-----------------------^
    at Object.parseError (/Users/popomore/code/popomore/node-sofa/node_modules/velocity.js/src/parse/index.js:263:11)
    at Object.parseError (/Users/popomore/code/popomore/node-sofa/node_modules/velocity.js/src/parse/index.js:374:28)
    at Object.lexer.next (/Users/popomore/code/popomore/node-sofa/node_modules/velocity.js/src/parse/index.js:510:25)
    at Object.lex (/Users/popomore/code/popomore/node-sofa/node_modules/velocity.js/src/parse/index.js:515:22)
    at lex (/Users/popomore/code/popomore/node-sofa/node_modules/velocity.js/src/parse/index.js:285:28)
    at Object.parse (/Users/popomore/code/popomore/node-sofa/node_modules/velocity.js/src/parse/index.js:298:26)
    at Object.exports.parse (/Users/popomore/code/popomore/node-sofa/node_modules/velocity.js/src/parse/index.js:712:53)
    at Object.Velocity.render (/Users/popomore/code/popomore/node-sofa/node_modules/velocity.js/src/velocity.js:21:21)
    at Object.module.exports.parse (/Users/popomore/code/popomore/node-sofa/lib/render.js:93:38)
    at /Users/popomore/code/popomore/node-sofa/lib/server.js:30:21
@shepherdwind
Copy link
Owner

呵呵,这个运算好像是没有,所有的运算都在这里 https://github.com/shepherdwind/velocity.js/blob/master/src/compile/expression.js#L17 ,我加一下

shepherdwind added a commit that referenced this issue Dec 20, 2012
@shepherdwind
Copy link
Owner

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

No branches or pull requests

2 participants