Skip to content

Support of nongreedy elements #9

@KvanTTT

Description

@KvanTTT

Greedy comment

Comment : '/*' .* '*/'; // It can match everything until end of file

Nongreedy comment

Comment : '/*' .*? '*/'; // It stops matching the token when the last `*/` is matched. It can be considered as equivalent to '/*' ~'*/'* '*/'

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions