-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
C#: Added context check for
from
keyword (#2970)
- Loading branch information
1 parent
0fd01ea
commit 158f25d
Showing
4 changed files
with
31 additions
and
4 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,27 @@ | ||
func(from: "America", to: "Asia"); // Prism incorrectly highlights "from" as a keyword | ||
|
||
from element in list; // no issues here | ||
|
||
---------------------------------------------------- | ||
|
||
[ | ||
["function", "func"], | ||
["punctuation", "("], | ||
["named-parameter", "from"], | ||
["punctuation", ":"], | ||
["string", "\"America\""], | ||
["punctuation", ","], | ||
["named-parameter", "to"], | ||
["punctuation", ":"], | ||
["string", "\"Asia\""], | ||
["punctuation", ")"], | ||
["punctuation", ";"], | ||
["comment", "// Prism incorrectly highlights \"from\" as a keyword"], | ||
|
||
["keyword", "from"], | ||
" element ", | ||
["keyword", "in"], | ||
" list", | ||
["punctuation", ";"], | ||
["comment", "// no issues here"] | ||
] |
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