-
Notifications
You must be signed in to change notification settings - Fork 745
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update C# lexer: new keywords and numeric literal syntax improvements (…
…#1660) * C# lexer: add keywords from newer language versions * `and` (pattern matching in C# 9) * `init` (records in C# 9) * `unmanaged` (new type constraint in C# 7) * `nint` (native sized integers in C# 9) * `nuint` (native sized integers in C# 9) * `not` (pattern matching in C# 9) * `notnull` (nullable reference types in C# 8) * `#nullable` (nullable reference types in C# 8) * `or` (pattern matching in C# 9) * `record` (records in C# 9) * `with` (records in C# 9) * `when` (exception filters in C# 6, pattern matching in C# 7) * C# lexer: numeric literal improvements * add C# 7 binary literals, e.g. `0b0010` * add C# 7 digit separators in all numeric literals, e.g. `123_567_890` * add missing `M` type suffix designating `decimal` * make the exponent sign optional
- Loading branch information
Showing
2 changed files
with
46 additions
and
13 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