Improve capture quantifier computation
Compute quantifiers in a bottom-up manner, which allows more precise results for alternations, where the quantifiers are now precisly joined.
This commit is contained in:
parent
9bac066330
commit
1f1a449c76
5 changed files with 506 additions and 78 deletions
|
|
@ -107,10 +107,11 @@ typedef struct {
|
|||
} TSQueryCapture;
|
||||
|
||||
typedef enum {
|
||||
One,
|
||||
OneOrMore,
|
||||
Zero = 0, // must match the array initialization value
|
||||
ZeroOrOne,
|
||||
ZeroOrMore,
|
||||
One,
|
||||
OneOrMore,
|
||||
} TSQuantifier;
|
||||
|
||||
typedef struct {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue