File tree 1 file changed +14
-2
lines changed
1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ declare module 'regexp-tree/ast' {
11
11
'Group' : Group ;
12
12
'Repetition' : Repetition ;
13
13
'Quantifier' : Quantifier ;
14
+ 'UnicodeProperty' : UnicodeProperty ;
14
15
}
15
16
16
17
export type AstClass = keyof AstClassMap ;
@@ -54,7 +55,7 @@ declare module 'regexp-tree/ast' {
54
55
55
56
export interface CharacterClass extends Base < 'CharacterClass' > {
56
57
negative ?: true ;
57
- expressions : ( Char | ClassRange ) [ ] ;
58
+ expressions : ( Char | ClassRange | UnicodeProperty ) [ ] ;
58
59
}
59
60
60
61
export interface Alternative extends Base < 'Alternative' > {
@@ -135,6 +136,16 @@ declare module 'regexp-tree/ast' {
135
136
| SimpleAssertion
136
137
| LookaroundAssertion ;
137
138
139
+ export interface UnicodeProperty extends Base < 'UnicodeProperty' > {
140
+ name : string ;
141
+ value : string ;
142
+ negative ?: true ;
143
+ shorthand ?: true ;
144
+ binary ?: true ;
145
+ canonicalName ?: string ;
146
+ canonicalValue ?: string ;
147
+ }
148
+
138
149
export type Expression =
139
150
| Char
140
151
| CharacterClass
@@ -143,7 +154,8 @@ declare module 'regexp-tree/ast' {
143
154
| Group
144
155
| Backreference
145
156
| Repetition
146
- | Assertion ;
157
+ | Assertion
158
+ | UnicodeProperty ;
147
159
148
160
export interface AstRegExp extends Base < 'RegExp' > {
149
161
body : Expression | null ;
You can’t perform that action at this time.
0 commit comments