From cf762df762b57ab2f49f21c0c2731625e63f3ba0 Mon Sep 17 00:00:00 2001 From: Nicolai Date: Mon, 27 Mar 2017 17:20:29 +0200 Subject: [PATCH] Fix: new syntax for Micro 1.1.5 (view-refactor branch merged) --- filemanager.lua | 4 ++-- repo.json | 6 +++--- syntax.micro | 3 --- syntax.yaml | 7 +++++++ 4 files changed, 12 insertions(+), 8 deletions(-) delete mode 100644 syntax.micro create mode 100644 syntax.yaml diff --git a/filemanager.lua b/filemanager.lua index a4db537..5393dc2 100644 --- a/filemanager.lua +++ b/filemanager.lua @@ -1,4 +1,4 @@ -VERSION = "1.3.3" +VERSION = "1.3.4" treeView = nil cwd = DirectoryName(".") @@ -153,4 +153,4 @@ function isDir(path) end MakeCommand("tree", "filemanager.ToggleTree", 0) -AddRuntimeFile("filemanager", "syntax", "syntax.micro") +AddRuntimeFile("filemanager", "syntax", "syntax.yaml") diff --git a/repo.json b/repo.json index 446535a..c8086bc 100644 --- a/repo.json +++ b/repo.json @@ -4,10 +4,10 @@ "Tags": ["filetree", "filemanager", "file", "manager"], "Versions": [ { - "Version": "1.3.3", - "Url": "https://github.com/NicolaiSoeborg/filemanager-plugin/archive/v1.3.3.zip", + "Version": "1.3.4", + "Url": "https://github.com/NicolaiSoeborg/filemanager-plugin/archive/v1.3.4.zip", "Require": { - "micro": ">=1.0.0" + "micro": ">=1.1.5" } } ] diff --git a/syntax.micro b/syntax.micro deleted file mode 100644 index b50f1dd..0000000 --- a/syntax.micro +++ /dev/null @@ -1,3 +0,0 @@ -syntax "filemanager-plugin" "^$" - -color special "\.\.|/" diff --git a/syntax.yaml b/syntax.yaml new file mode 100644 index 0000000..61dcd52 --- /dev/null +++ b/syntax.yaml @@ -0,0 +1,7 @@ +filetype: manager + +detect: + filename: "^$" + +rules: + - special: "\\.\\.|/"