Added file-header pattern support to syntax

This commit is contained in:
rxi
2020-06-08 16:11:22 +01:00
parent db471c0554
commit ba6c14846b
5 changed files with 13 additions and 4 deletions
+1
View File
@@ -2,6 +2,7 @@ local syntax = require "core.syntax"
syntax.add {
files = { "%.xml$", "%.html?$" },
headers = "<%?xml",
patterns = {
{ pattern = { "<!%-%-", "%-%->" }, type = "comment" },
{ pattern = { '%f[^>][^<]', '%f[<]' }, type = "normal" },