-
Notifications
You must be signed in to change notification settings - Fork 591
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[C#] support class definitions without a body (#4120)
* [C#] support class definitions without a body * [C#] Inherited class arguments --------- Co-authored-by: Keith Hall <[email protected]> Co-authored-by: deathaxe <[email protected]>
- Loading branch information
1 parent
f615fed
commit 553c203
Showing
3 changed files
with
104 additions
and
41 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
/// SYNTAX TEST "Packages/C#/C#.sublime-syntax" | ||
|
||
public class InvalidException(string _message) : Exception(_message); | ||
///^^^ storage.modifier.access.cs | ||
/// ^^^^^^^^^^^^^^^^^^^^^^ meta.class.cs | ||
/// ^^^^^ keyword.declaration.class.cs | ||
/// ^^^^^^^^^^^^^^^^ entity.name.class.cs | ||
/// ^^^^^^^^^^^^^^^^^ meta.class.constructor.parameters.cs | ||
/// ^ punctuation.section.parameters.begin.cs | ||
/// ^^^^^^ storage.type.cs | ||
/// ^^^^^^^^ variable.parameter.cs | ||
/// ^ punctuation.section.parameters.end.cs | ||
/// ^^^^^^^^^^^^ meta.class.cs | ||
/// ^ punctuation.separator.type.cs | ||
/// ^^^^^^^^^ entity.other.inherited-class.cs | ||
/// ^^^^^^^^^^ meta.class.constructor.arguments.cs meta.group.cs | ||
/// ^ punctuation.section.group.begin.cs | ||
/// ^^^^^^^^ variable.other.cs | ||
/// ^ punctuation.section.group.end.cs | ||
/// ^ punctuation.terminator.statement.cs | ||
/// ^ - meta.class | ||
|
||
public class NotFoundException(string _message) : Exception(_message); | ||
///^^^ storage.modifier.access.cs | ||
/// ^^^^^^^^^^^^^^^^^^^^^^^ meta.class.cs | ||
/// ^^^^^ keyword.declaration.class.cs | ||
/// ^^^^^^^^^^^^^^^^^ entity.name.class.cs | ||
/// ^^^^^^^^^^^^^^^^^ meta.class.constructor.parameters.cs | ||
/// ^ punctuation.section.parameters.begin.cs | ||
/// ^^^^^^ storage.type.cs | ||
/// ^^^^^^^^ variable.parameter.cs | ||
/// ^ punctuation.section.parameters.end.cs | ||
/// ^^^^^^^^^^^^ meta.class.cs | ||
/// ^ punctuation.separator.type.cs | ||
/// ^^^^^^^^^ entity.other.inherited-class.cs | ||
/// ^^^^^^^^^^ meta.class.constructor.arguments.cs meta.group.cs | ||
/// ^ punctuation.section.group.begin.cs | ||
/// ^^^^^^^^ variable.other.cs | ||
/// ^ punctuation.section.group.end.cs | ||
/// ^ punctuation.terminator.statement.cs |
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