diff options
author | Liqube <git@liqube.com> | 2020-05-18 17:48:16 +0200 |
---|---|---|
committer | Liqube <git@liqube.com> | 2020-05-18 17:48:16 +0200 |
commit | 641f10a90122cba4397cc2e7a99cb684bde2ef24 (patch) | |
tree | 67f13af1388d9cdde34d477caf03b10f334bb841 /plugins/language_batch.lua | |
parent | 705a030527c147cfc31bdd9351e0b7194dcd2b6f (diff) | |
download | lite-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.lua | 38 |
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 |