Handle aliases in unicode property escapes in regexes
This commit is contained in:
parent
82d4da553e
commit
e030434ca7
6 changed files with 150 additions and 8 deletions
|
|
@ -30,3 +30,14 @@ Math symbols
|
|||
|
||||
(program
|
||||
(math_sym) (math_sym) (math_sym) (math_sym) (math_sym))
|
||||
|
||||
================================
|
||||
Letterlike numeric characters
|
||||
================================
|
||||
|
||||
ᛯ Ⅵ 〩
|
||||
|
||||
---
|
||||
|
||||
(program
|
||||
(letter_number) (letter_number) (letter_number))
|
||||
|
|
|
|||
|
|
@ -13,7 +13,8 @@
|
|||
"members": [
|
||||
{"type": "SYMBOL", "name": "lower"},
|
||||
{"type": "SYMBOL", "name": "upper"},
|
||||
{"type": "SYMBOL", "name": "math_sym"}
|
||||
{"type": "SYMBOL", "name": "math_sym"},
|
||||
{"type": "SYMBOL", "name": "letter_number"}
|
||||
]
|
||||
}
|
||||
},
|
||||
|
|
@ -31,6 +32,11 @@
|
|||
"math_sym": {
|
||||
"type": "PATTERN",
|
||||
"value": "\\p{Sm}+"
|
||||
},
|
||||
|
||||
"letter_number": {
|
||||
"type": "PATTERN",
|
||||
"value": "\\p{Letter_Number}"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue