Improve language CSS color literal pattern

Close #123
This commit is contained in:
Francesco Abbate 2021-04-12 11:21:00 +02:00
parent b4ba209b29
commit a1b3266d42
1 changed files with 2 additions and 1 deletions

View File

@ -9,7 +9,8 @@ syntax.add {
{ pattern = { '"', '"', '\\' }, type = "string" },
{ pattern = { "'", "'", '\\' }, type = "string" },
{ pattern = "[%a][%w-]*%s*%f[:]", type = "keyword" },
{ pattern = "#%x+", type = "string" },
{ pattern = "#%x%x%x%x%x%x%f[%W]",type = "string" },
{ pattern = "#%x%x%x%f[%W]", type = "string" },
{ pattern = "-?%d+[%d%.]*p[xt]", type = "number" },
{ pattern = "-?%d+[%d%.]*deg", type = "number" },
{ pattern = "-?%d+[%d%.]*", type = "number" },