Skip to content

Commit

Permalink
Basic highlighting for fscript functions
Browse files Browse the repository at this point in the history
  • Loading branch information
harshdoesdev committed Aug 29, 2023
1 parent f7febe5 commit 4e5aec1
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions src/syntaxes/ftd.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,22 @@
},
{
"name": "entity.name.function",
"match": "^(--\\s*)([\\w$\\-_. ]+)(?=\\s*:\\s)",
"match": "^(--\\s*)([\\w$\\-_. ]+)\\s([\\w$\\-_. ]+)\\(([^):]*)\\)(?:)",
"captures": {
"1": { "name": "punctuation.definition.section.start.ftd" },
"2": { "name": "entity.name.function" }
"2": { "name": "keyword.operator" },
"3": { "name": "entity.name.function" },
"4": { "name": "variable.parameter.ftd" }
}
},
{
"name": "entity.name.section",
"match": "^(--\\s*)([\\w$\\-_. ]+)(?=\\s*:\\s)",
"captures": {
"0": { "name": "entity.name.function" },
"1": { "name": "punctuation.definition.section.start.ftd" }
}
},
{
"name": "entity.section.end.ftd",
"match": "(--\\s*)(end:)\\s*((?:\\w+[\\-\\.\\w]*)+)",
Expand Down

0 comments on commit 4e5aec1

Please sign in to comment.