-
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.
Improvements to C# operator and punctuation (#1532)
Solve the issue of [C# breaking ligature fonts with the `=>` operator](#1133 (comment)). `=>` is now an operator. There are also some other changes. 1. `?` and `:` are now all included by `punctuation`. Because `:` cannot be included in `operator` (because it is also used for inheritance) the `?` shouldn't be an `operator` either. 2. `??` and `?.` were added to `punctuation`. They weren't explicitly supported before. 3. An operator-test was added.
- Loading branch information
1 parent
00bfc96
commit 3b1e091
Showing
5 changed files
with
96 additions
and
11 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
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,60 @@ | ||
+ - * / % -- ++ | ||
>> << | ||
~ & | ^ | ||
+= -= *= /= %= >>= <<= &= |= ^= | ||
! && || | ||
-> => | ||
= == != < > <= >= | ||
?? | ||
|
||
---------------------------------------------------- | ||
|
||
[ | ||
["operator", "+"], | ||
["operator", "-"], | ||
["operator", "*"], | ||
["operator", "/"], | ||
["operator", "%"], | ||
["operator", "--"], | ||
["operator", "++"], | ||
|
||
["operator", ">>"], | ||
["operator", "<<"], | ||
|
||
["operator", "~"], | ||
["operator", "&"], | ||
["operator", "|"], | ||
["operator", "^"], | ||
|
||
["operator", "+="], | ||
["operator", "-="], | ||
["operator", "*="], | ||
["operator", "/="], | ||
["operator", "%="], | ||
["operator", ">>="], | ||
["operator", "<<="], | ||
["operator", "&="], | ||
["operator", "|="], | ||
["operator", "^="], | ||
|
||
["operator", "!"], | ||
["operator", "&&"], | ||
["operator", "||"], | ||
|
||
["operator", "->"], | ||
["operator", "=>"], | ||
|
||
["operator", "="], | ||
["operator", "=="], | ||
["operator", "!="], | ||
["operator", "<"], | ||
["operator", ">"], | ||
["operator", "<="], | ||
["operator", ">="], | ||
|
||
["operator", "??"] | ||
] | ||
|
||
---------------------------------------------------- | ||
|
||
Checks for all operators. |
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 @@ | ||
. , ; : :: | ||
? ?. | ||
[ ] { } ( ) | ||
|
||
---------------------------------------------------- | ||
|
||
[ | ||
["punctuation", "."], | ||
["punctuation", ","], | ||
["punctuation", ";"], | ||
["punctuation", ":"], | ||
["punctuation", "::"], | ||
|
||
["punctuation", "?"], | ||
["punctuation", "?."], | ||
|
||
["punctuation", "["], | ||
["punctuation", "]"], | ||
["punctuation", "{"], | ||
["punctuation", "}"], | ||
["punctuation", "("], | ||
["punctuation", ")"] | ||
] | ||
|
||
---------------------------------------------------- | ||
|
||
Checks for punctuation. |