Skip to content

Commit

Permalink
Add function declaration syntax highlighting rule
Browse files Browse the repository at this point in the history
  • Loading branch information
didrikmunther committed Sep 26, 2024
1 parent d946bad commit 7f28b2f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions lsp-client/syntaxes/rost.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,18 @@
}
}
},
{
"name": "meta.function-definition.rost",
"match": "(fn)\\s*([a-zA-Z_][a-zA-Z0-9_]*)",
"captures": {
"1": {
"name": "keyword.control.rost"
},
"2": {
"name": "support.function.builtin.rost"
}
}
},
{
"name": "comment.block.rost",
"begin": "/\\*",
Expand Down

0 comments on commit 7f28b2f

Please sign in to comment.