fix fennel syntax highlighting quirk
This commit is contained in:
parent
6d46d0f638
commit
f0156c576a
14
vendor/lite-plugins/plugins/language_fennel.lua
vendored
14
vendor/lite-plugins/plugins/language_fennel.lua
vendored
|
@ -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 = {
|
||||||
|
|
Loading…
Reference in a new issue