diff --git a/src/syntaxes/ftd.tmLanguage.json b/src/syntaxes/ftd.tmLanguage.json index 5e03e29..98f99fd 100644 --- a/src/syntaxes/ftd.tmLanguage.json +++ b/src/syntaxes/ftd.tmLanguage.json @@ -22,12 +22,12 @@ }, { "name": "entity.name.function", - "match": "(--\\s*)(\\w+.*):", + "match": "^(--\\s*)([\\w$\\-_. ]+)(?=\\s*:\\s)", "captures": { "1": { "name": "punctuation.definition.section.start.ftd" }, "2": { "name": "entity.name.function" } } - }, + }, { "name": "entity.section.end.ftd", "match": "(--\\s*)(end:)\\s*((?:\\w+[\\-\\.\\w]*)+)",