aboutsummaryrefslogtreecommitdiff
path: root/plugins/language_batch.lua
diff options
context:
space:
mode:
authorLiqube <git@liqube.com>2020-05-18 17:48:16 +0200
committerLiqube <git@liqube.com>2020-05-18 17:48:16 +0200
commit641f10a90122cba4397cc2e7a99cb684bde2ef24 (patch)
tree67f13af1388d9cdde34d477caf03b10f334bb841 /plugins/language_batch.lua
parent705a030527c147cfc31bdd9351e0b7194dcd2b6f (diff)
downloadlite-xl-plugins-641f10a90122cba4397cc2e7a99cb684bde2ef24.tar.gz
lite-xl-plugins-641f10a90122cba4397cc2e7a99cb684bde2ef24.zip
cleanup indentation
Diffstat (limited to 'plugins/language_batch.lua')
-rw-r--r--plugins/language_batch.lua38
1 files changed, 19 insertions, 19 deletions
diff --git a/plugins/language_batch.lua b/plugins/language_batch.lua
index 1cc511f..ca063f7 100644
--- a/plugins/language_batch.lua
+++ b/plugins/language_batch.lua
@@ -5,26 +5,26 @@ local syntax = require "core.syntax"
-- windows batch files use caseless matching for symbols
local symtable = {
["keyword"] = {
- "if", "else", "elsif", "not", "for", "do", "in",
- "equ", "neq", "lss", "leq", "gtr", "geq", -- == != < <= > >=
- "nul", "con", "prn", "prn", "lpt1", "com1", "com2", "com3", "com4",
- "exist", "defined",
- "errorlevel", "cmdextversion",
- "goto", "call", "verify",
+ "if", "else", "elsif", "not", "for", "do", "in",
+ "equ", "neq", "lss", "leq", "gtr", "geq", -- == != < <= > >=
+ "nul", "con", "prn", "prn", "lpt1", "com1", "com2", "com3", "com4",
+ "exist", "defined",
+ "errorlevel", "cmdextversion",
+ "goto", "call", "verify",
},
["function"] = {
- "set", "setlocal", "endlocal", "enabledelayedexpansion",
- "echo", "type",
- "cd", "chdir",
- "md", "mkdir",
- "pause", "choice", "exit",
- "del", "rd", "rmdir",
- "copy", "xcopy",
- "move", "ren",
- "find", "findstr",
- "sort", "shift", "attrib",
- "cmd", "command",
- "forfiles",
+ "set", "setlocal", "endlocal", "enabledelayedexpansion",
+ "echo", "type",
+ "cd", "chdir",
+ "md", "mkdir",
+ "pause", "choice", "exit",
+ "del", "rd", "rmdir",
+ "copy", "xcopy",
+ "move", "ren",
+ "find", "findstr",
+ "sort", "shift", "attrib",
+ "cmd", "command",
+ "forfiles",
},
}
-- prepare a mixed symbol list digestable by lite
@@ -33,7 +33,7 @@ local function prepare_symbols(symtable)
for symtype, symlist in pairs(symtable) do
for _, symname in ipairs(symlist) do
symbols[symname:lower()] = symtype
- symbols[symname:upper()] = symtype
+ symbols[symname:upper()] = symtype
end
end
return symbols