Skip to content

Commit

Permalink
fix: syntax highlighting for indented sections/properties
Browse files Browse the repository at this point in the history
  • Loading branch information
harshdoesdev committed Apr 5, 2024
1 parent 4da2f6f commit a197616
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/syntaxes/ftd.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
},
{
"name": "entity.name.section",
"match": "^(--\\s*)([\\w$\\-_. ]+)(?=\\s*:\\s)",
"match": "^(\\s*--\\s*)([\\w$\\-_. ]+)(?=\\s*:\\s)",
"captures": {
"0": { "name": "entity.name.function" },
"1": { "name": "punctuation.definition.section.start.ftd" }
Expand All @@ -48,14 +48,14 @@
},
{
"name": "entity.property.name.ftd",
"match": "^\\b(.*?)(?=\\s*:\\s)",
"match": "^\\s*\\b(.*?)(?=\\s*:\\s)",
"captures": {
"1": { "name": "entity.name.tag.ftd" }
}
},
{
"name": "entity.property.name.internal.ftd",
"match": "^(?:^|\\s)(\\$.*?\\$)(?=\\s*:\\s)",
"match": "^(?:^\\s*|\\s)(\\$.*?\\$)(?=\\s*:\\s)",
"captures": {
"1": { "name": "keyword.operator" }
}
Expand Down

0 comments on commit a197616

Please sign in to comment.