fix fennel syntax highlighting quirk

This commit is contained in:
Jeremy Penner 2022-03-27 12:26:52 -04:00
parent 6d46d0f638
commit f0156c576a

View file

@ -10,13 +10,13 @@ syntax.add {
files = "%.fnl$", files = "%.fnl$",
comment = ";", comment = ";",
patterns = { patterns = {
{ pattern = ";.-\n", type = "comment" }, { pattern = ";.-\n", type = "comment" },
{ pattern = { '"', '"', '\\' }, type = "string" }, { pattern = { '"', '"', '\\' }, type = "string" },
{ pattern = "0x[%da-fA-F]+", type = "number" }, { pattern = "0x[%da-fA-F]+", type = "number" },
{ pattern = "-?%d+[%d%.]*", type = "number" }, { pattern = "-?%d+[%d%.]*", type = "number" },
{ pattern = "-?%.?%d+", type = "number" }, { pattern = "-?%.?%d+", type = "number" },
{ pattern = "%f[^(][^()'%s\"]+", type = "function" }, { pattern = "%f[^(%[%{][^()'%s\"]+", type = "function" },
{ pattern = "[^()'%s\"]+", type = "symbol" }, { pattern = "[^()%s\"]+", type = "symbol" },
}, },
symbols = { symbols = {