diff --git a/src/syntaxes/ftd.tmLanguage.json b/src/syntaxes/ftd.tmLanguage.json index 557c459..fe9fa41 100644 --- a/src/syntaxes/ftd.tmLanguage.json +++ b/src/syntaxes/ftd.tmLanguage.json @@ -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" } @@ -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" } }