Skip to content

Commit

Permalink
feat: render question mark
Browse files Browse the repository at this point in the history
  • Loading branch information
Myriad-Dreamin committed Sep 22, 2024
1 parent 4815210 commit 5f986dd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions samples/Syntax/try-catch.syntax.cos
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,11 @@ def main() = {
// catch (promise) => Unit;
// catch [T](promise: T) => Unit;

???;

res?;
res??;
res???;
read("f")?;
read("f")??;
res?.method();
Expand Down
2 changes: 1 addition & 1 deletion syntaxes/textmate/main.mts
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ const numeric: textmate.Pattern = {

const markers: textmate.Pattern = {
name: "keyword.control.cosmo",
match: /=>|\?\?\?/,
match: /=>|\?/,
};

const literal: textmate.Pattern = {
Expand Down

0 comments on commit 5f986dd

Please sign in to comment.