Skip to content

Commit

Permalink
Improved highlighting for FScript
Browse files Browse the repository at this point in the history
  • Loading branch information
harshdoesdev committed Aug 2, 2023
1 parent 30646f6 commit f7febe5
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 5 deletions.
12 changes: 10 additions & 2 deletions src/language-configuration.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,15 @@
"lineComment": ";;",
},
"brackets": [],
"autoClosingPairs": [],
"surroundingPairs": [],
"autoClosingPairs": [
{ "open": "{", "close": "}" },
{ "open": "[", "close": "]" },
{ "open": "(", "close": ")" }
],
"surroundingPairs": [
["{", "}"],
["[", "]"],
["(", ")"]
],
"wordPattern": "(#|\\$|\\*\\$)?(\\w+[\\w\\.|\\-]*)(\\$)?"
}
20 changes: 17 additions & 3 deletions src/syntaxes/ftd.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,27 @@
}
},
{
"name": "string.value.arithmetic.curly-braces.ftd",
"name": "string.operators.curly-braces.ftd",
"begin": "{",
"end": "}",
"patterns": [
{
"name": "punctuation.definition.paran.open.ftd",
"match": "\\(",
"captures": {
"0": { "name": "support.type" }
}
},
{
"name": "punctuation.definition.paran.close.ftd",
"match": "\\)",
"captures": {
"0": { "name": "support.type" }
}
},
{
"name": "keyword.operator.ftd",
"match": "\\+|-|\\*|/|%|\\^|>=|<=|==|!=|>|<",
"match": "!|>=|<=|==|!=|>|<|&|&&|\\||\\|\\|",
"captures": {
"0": { "name": "keyword.operator" }
}
Expand All @@ -78,7 +92,7 @@
"patterns": [
{
"name": "keyword.operator.ftd",
"match": "\\+|-|\\*|/|%|\\^|>=|<=|==|!=|>|<",
"match": "\\+|-|\\*|/|%|\\^",
"captures": {
"0": { "name": "keyword.operator.ftd" }
}
Expand Down

0 comments on commit f7febe5

Please sign in to comment.