aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorLiqube <git@liqube.com>2020-05-18 18:11:01 +0200
committerLiqube <git@liqube.com>2020-05-18 18:11:01 +0200
commit8b1cff83b29b7448985ea75957b1320c20635762 (patch)
tree1449c764deb9d8f152675b76edf9e3a0bd830bf3 /plugins
parent5affdc231f7cf34ffa1246eff502ebe6e9e1e449 (diff)
downloadlite-xl-plugins-8b1cff83b29b7448985ea75957b1320c20635762.tar.gz
lite-xl-plugins-8b1cff83b29b7448985ea75957b1320c20635762.zip
csv basic syntax
Diffstat (limited to 'plugins')
-rw-r--r--plugins/language_csv.lua13
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 = { },
+}