diff --git a/syntaxes/notes.tmLanguage.json b/syntaxes/notes.tmLanguage.json index a3ccb90..2e268b7 100644 --- a/syntaxes/notes.tmLanguage.json +++ b/syntaxes/notes.tmLanguage.json @@ -19,8 +19,16 @@ } }, { - "match": "\\bkortina\\b", - "name": "text.markdown.notes.kortina" + "match": "(\\#)([\\w\\-\\_]+)", + "name": "text.markdown.notes.tag", + "captures": { + "1": { + "name": "punctuation.definition.tag" + }, + "2": { + "name": "support.function.text.markdown.notes.tag.title" + } + } } ], "scopeName": "text.markdown.notes" diff --git a/test/test.md b/test/test.md index cb66706..bd2492f 100644 --- a/test/test.md +++ b/test/test.md @@ -1,4 +1,4 @@ -# test +# test #tag - [[test]] - no extension - [[test.md]] - extension, exists @@ -7,4 +7,4 @@ - [[./sub/sub.md]] - relative path, exists - [[sub.md]] - exists in sub directory -#tag +#tag #tag2