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

支持commandSyntax参数 #35

Closed
errorrik opened this issue Jul 29, 2014 · 0 comments
Closed

支持commandSyntax参数 #35

errorrik opened this issue Jul 29, 2014 · 0 comments

Comments

@errorrik
Copy link
Contributor

通过{RegExp} commandSyntax参数,可以制定command语法。

{RegExp} commandSyntax的match点:

  1. 是否闭合
  2. command name
  3. command value

比如我们现在的if是这样的

<!-- if: ${v} == 1 -->

如果commandSyntax/^\s*(\/)?([a-z]+)\s?([\s\S]*)$/,就能这样写if:

<!-- if ${v} == 1 -->
erik168 added a commit that referenced this issue Jul 29, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant