| Index: src/char-predicates.h
|
| diff --git a/src/char-predicates.h b/src/char-predicates.h
|
| index 767ad6513afa7e3d5995a31a1df22372bf7a9484..6e40e77b3bee601240df835d5c8fb0f942cd14d2 100644
|
| --- a/src/char-predicates.h
|
| +++ b/src/char-predicates.h
|
| @@ -66,6 +66,16 @@ struct IdentifierPart {
|
| }
|
| };
|
|
|
| +struct IdentifierPartNotLetter {
|
| + static inline bool Is(uc32 c) {
|
| + return unibrow::Number::Is(c)
|
| + || c == 0x200C // U+200C is Zero-Width Non-Joiner.
|
| + || c == 0x200D // U+200D is Zero-Width Joiner.
|
| + || unibrow::CombiningMark::Is(c)
|
| + || unibrow::ConnectorPunctuation::Is(c);
|
| + }
|
| +};
|
| +
|
| } } // namespace v8::internal
|
|
|
| #endif // V8_CHAR_PREDICATES_H_
|
|
|