grammars-v4 icon indicating copy to clipboard operation
grammars-v4 copied to clipboard

xsd-regex could not parse \d{1,2}

Open jiangjianbo opened this issue 9 months ago • 0 comments

Hi:

I found xsd-regex could not parse \d{1,2} correctly, It's return wrong syntax tree as below:

Image

I read the code, found atom's quantifier only recognize ?*+, but { will be put in next pice.

// Piece piece : atom quantifier? ;

// Quantifier quantifier : QUESTION | STAR | PLUS | StartQuantity quantity EndQuantity ;

debug result

Image

jiangjianbo avatar Jan 17 '25 08:01 jiangjianbo