diff options
author | Liqube <git@liqube.com> | 2020-05-18 18:11:01 +0200 |
---|---|---|
committer | Liqube <git@liqube.com> | 2020-05-18 18:11:01 +0200 |
commit | 8b1cff83b29b7448985ea75957b1320c20635762 (patch) | |
tree | 1449c764deb9d8f152675b76edf9e3a0bd830bf3 /plugins | |
parent | 5affdc231f7cf34ffa1246eff502ebe6e9e1e449 (diff) | |
download | lite-xl-plugins-8b1cff83b29b7448985ea75957b1320c20635762.tar.gz lite-xl-plugins-8b1cff83b29b7448985ea75957b1320c20635762.zip |
csv basic syntax
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/language_csv.lua | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/plugins/language_csv.lua b/plugins/language_csv.lua new file mode 100644 index 0000000..1ffb832 --- /dev/null +++ b/plugins/language_csv.lua @@ -0,0 +1,13 @@ +local syntax = require "core.syntax" + +-- csv basic syntax for lite <liqube> +syntax.add { + files = { "%.csv$" }, + patterns = { + { pattern = "-?%.?%d+f?", type = "number" }, -- numbers + { pattern = "[,;|]", type = "operator" }, -- operators + { pattern = { '"', '"', '\\' }, type = "string" }, -- strings + { pattern = { "'", "'", '\\' }, type = "string" }, -- strings + }, + symbols = { }, +} |