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

Allow users to choose between "extended" or "non-extended" tokenization #10

Closed
PolyPik opened this issue Jul 2, 2019 · 1 comment
Closed

Comments

@PolyPik
Copy link
Contributor

PolyPik commented Jul 2, 2019

Basically allow the library user to choose whether to tokenize according to the set of tokens used by TwigPHP or according to the twig-lexer set of tokens that is a superset of the TwigPHP tokens.

public tokenize(source: string, extended:boolean = true): Token[]

@ericmorand
Copy link
Member

Closed in favor of #12

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

2 participants