aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 = { },
+}