-
Notifications
You must be signed in to change notification settings - Fork 589
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
- Loading branch information
Keith Hall
committed
Dec 26, 2024
1 parent
be1bdd1
commit 3a5f3fd
Showing
3 changed files
with
81 additions
and
39 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.function-call.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.function-call.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