-
Notifications
You must be signed in to change notification settings - Fork 12.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Provide Spelling Suggestions for Unicode Property Value Expressions
- Loading branch information
1 parent
fefcf29
commit 1a5228d
Showing
8 changed files
with
64 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
...baselines/reference/regularExpressionUnicodePropertyValueExpressionSuggestions.errors.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
regularExpressionUnicodePropertyValueExpressionSuggestions.ts(1,19): error TS1527: Unknown Unicode property name or value. | ||
regularExpressionUnicodePropertyValueExpressionSuggestions.ts(1,28): error TS1522: Unknown Unicode property name. | ||
regularExpressionUnicodePropertyValueExpressionSuggestions.ts(1,45): error TS1524: Unknown Unicode property value. | ||
regularExpressionUnicodePropertyValueExpressionSuggestions.ts(1,55): error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. | ||
|
||
|
||
==== regularExpressionUnicodePropertyValueExpressionSuggestions.ts (4 errors) ==== | ||
const regex = /\p{ascii}\p{Sc=Unknown}\p{sc=unknownX}/u; | ||
~~~~~ | ||
!!! error TS1527: Unknown Unicode property name or value. | ||
!!! related TS1369 regularExpressionUnicodePropertyValueExpressionSuggestions.ts:1:19: Did you mean 'ASCII'? | ||
~~ | ||
!!! error TS1522: Unknown Unicode property name. | ||
!!! related TS1369 regularExpressionUnicodePropertyValueExpressionSuggestions.ts:1:28: Did you mean 'sc'? | ||
~~~~~~~~ | ||
!!! error TS1524: Unknown Unicode property value. | ||
!!! related TS1369 regularExpressionUnicodePropertyValueExpressionSuggestions.ts:1:45: Did you mean 'Unknown'? | ||
~ | ||
!!! error TS1499: This regular expression flag is only available when targeting 'ES2015' or later. | ||
|
8 changes: 8 additions & 0 deletions
8
tests/baselines/reference/regularExpressionUnicodePropertyValueExpressionSuggestions.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
//// [tests/cases/compiler/regularExpressionUnicodePropertyValueExpressionSuggestions.ts] //// | ||
|
||
//// [regularExpressionUnicodePropertyValueExpressionSuggestions.ts] | ||
const regex = /\p{ascii}\p{Sc=Unknown}\p{sc=unknownX}/u; | ||
|
||
|
||
//// [regularExpressionUnicodePropertyValueExpressionSuggestions.js] | ||
var regex = /\p{ascii}\p{Sc=Unknown}\p{sc=unknownX}/u; |
6 changes: 6 additions & 0 deletions
6
tests/baselines/reference/regularExpressionUnicodePropertyValueExpressionSuggestions.symbols
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
//// [tests/cases/compiler/regularExpressionUnicodePropertyValueExpressionSuggestions.ts] //// | ||
|
||
=== regularExpressionUnicodePropertyValueExpressionSuggestions.ts === | ||
const regex = /\p{ascii}\p{Sc=Unknown}\p{sc=unknownX}/u; | ||
>regex : Symbol(regex, Decl(regularExpressionUnicodePropertyValueExpressionSuggestions.ts, 0, 5)) | ||
|
7 changes: 7 additions & 0 deletions
7
tests/baselines/reference/regularExpressionUnicodePropertyValueExpressionSuggestions.types
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
//// [tests/cases/compiler/regularExpressionUnicodePropertyValueExpressionSuggestions.ts] //// | ||
|
||
=== regularExpressionUnicodePropertyValueExpressionSuggestions.ts === | ||
const regex = /\p{ascii}\p{Sc=Unknown}\p{sc=unknownX}/u; | ||
>regex : RegExp | ||
>/\p{ascii}\p{Sc=Unknown}\p{sc=unknownX}/u : RegExp | ||
|
1 change: 1 addition & 0 deletions
1
tests/cases/compiler/regularExpressionUnicodePropertyValueExpressionSuggestions.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
const regex = /\p{ascii}\p{Sc=Unknown}\p{sc=unknownX}/u; |