diff options
author | Liqube <git@liqube.com> | 2020-05-17 22:49:31 +0200 |
---|---|---|
committer | Liqube <git@liqube.com> | 2020-05-17 22:49:31 +0200 |
commit | 19d01aae13b1adbc4026817af97eb26a7f4a45d7 (patch) | |
tree | dac49c187e7eca20b3ccc8cc7dd32436761ad004 /plugins | |
parent | 2a4f16cf824eabb7ee3119abc32cfc88fbf622a3 (diff) | |
download | lite-xl-plugins-19d01aae13b1adbc4026817af97eb26a7f4a45d7.tar.gz lite-xl-plugins-19d01aae13b1adbc4026817af97eb26a7f4a45d7.zip |
fixed indentation
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/language_batch.lua | 138 |
1 files changed, 69 insertions, 69 deletions
diff --git a/plugins/language_batch.lua b/plugins/language_batch.lua index 958f576..fe1f28e 100644 --- a/plugins/language_batch.lua +++ b/plugins/language_batch.lua @@ -5,77 +5,77 @@ syntax.add { files = { "%.bat$", "%.cmd$" }, comment = "rem", patterns = { - { pattern = "@echo off\n", type = "keyword" }, - { pattern = "@echo on\n", type = "keyword" }, - { pattern = "rem.-\n", type = "comment" }, -- rem comment line, rem, rem. - { pattern = "REM.-\n", type = "comment" }, - { pattern = "%:%:.-\n", type = "comment" }, -- :: comment line - { pattern = "%%%w+%%", type = "symbol" }, -- %variable% - { pattern = "%%%%?~?[%w:]+", type = "symbol" }, -- %1, %~dpn1, %~1:2, %%i, %%~i - { pattern = "[!=()%>&%^/\\]", type = "operator" }, -- operators - { pattern = "-?%.?%d+f?", type = "number" }, -- integer numbers - { pattern = { '"', '"', '\\' }, type = "string" }, -- "strings" - { pattern = "[%a_][%w_]*", type = "normal" }, - { pattern = ":eof", type = "keyword" }, -- todo: end processing here (lite cannot do that yet) - { pattern = "%s*:%w+", type = "symbol" }, -- :labels + { pattern = "@echo off\n", type = "keyword" }, + { pattern = "@echo on\n", type = "keyword" }, + { pattern = "rem.-\n", type = "comment" }, -- rem comment line, rem, rem. + { pattern = "REM.-\n", type = "comment" }, + { pattern = "%:%:.-\n", type = "comment" }, -- :: comment line + { pattern = "%%%w+%%", type = "symbol" }, -- %variable% + { pattern = "%%%%?~?[%w:]+", type = "symbol" }, -- %1, %~dpn1, %~1:2, %%i, %%~i + { pattern = "[!=()%>&%^/\\]", type = "operator" }, -- operators + { pattern = "-?%.?%d+f?", type = "number" }, -- integer numbers + { pattern = { '"', '"', '\\' }, type = "string" }, -- "strings" + { pattern = "[%a_][%w_]*", type = "normal" }, + { pattern = ":eof", type = "keyword" }, -- todo: end processing here (lite cannot do that yet) + { pattern = "%s*:%w+", type = "symbol" }, -- :labels }, -- todo: caseless matching (lite cannot do that yet) symbols = { - ["if"] = "keyword", - ["else"] = "keyword", - ["elsif"] = "keyword", - ["not"] = "keyword", - ["for"] = "keyword", - ["do"] = "keyword", - ["exist"] = "keyword", - ["in"] = "keyword", - ["equ"] = "keyword", -- == - ["neq"] = "keyword", -- != - ["lss"] = "keyword", -- < - ["leq"] = "keyword", -- <= - ["gtr"] = "keyword", -- > - ["geq"] = "keyword", -- >= - ["nul"] = "keyword", - ["con"] = "keyword", - ["prn"] = "keyword", - ["prn"] = "keyword", - ["lpt1"] = "keyword", - ["com1"] = "keyword", - ["com2"] = "keyword", - ["com3"] = "keyword", - ["com4"] = "keyword", - ["errorlevel"] = "keyword", - ["defined"] = "keyword", - ["cmdextversion"]= "keyword", - ["goto"] = "keyword", - ["call"] = "keyword", - ["verify"] = "keyword", - ["setlocal"] = "function", - ["endlocal"] = "function", - ["enabledelayedexpansion"] = "function", - ["set"] = "function", - ["echo"] = "function", - ["rd"] = "function", - ["xcopy"] = "function", - ["del"] = "function", - ["ren"] = "function", - ["rmdir"] = "function", - ["move"] = "function", - ["copy"] = "function", - ["find"] = "function", - ["exit"] = "function", - ["pause"] = "function", - ["choice"] = "function", - ["command"] = "function", - ["cmd"] = "function", - ["shift"] = "function", - ["attrib"] = "function", - ["type"] = "function", - ["sort"] = "function", - ["cd"] = "function", - ["chdir"] = "function", - ["md"] = "function", - ["mkdir"] = "function", - ["forfiles"] = "function", + ["if"] = "keyword", + ["else"] = "keyword", + ["elsif"] = "keyword", + ["not"] = "keyword", + ["for"] = "keyword", + ["do"] = "keyword", + ["exist"] = "keyword", + ["in"] = "keyword", + ["equ"] = "keyword", -- == + ["neq"] = "keyword", -- != + ["lss"] = "keyword", -- < + ["leq"] = "keyword", -- <= + ["gtr"] = "keyword", -- > + ["geq"] = "keyword", -- >= + ["nul"] = "keyword", + ["con"] = "keyword", + ["prn"] = "keyword", + ["prn"] = "keyword", + ["lpt1"] = "keyword", + ["com1"] = "keyword", + ["com2"] = "keyword", + ["com3"] = "keyword", + ["com4"] = "keyword", + ["errorlevel"] = "keyword", + ["defined"] = "keyword", + ["cmdextversion"] = "keyword", + ["goto"] = "keyword", + ["call"] = "keyword", + ["verify"] = "keyword", + ["setlocal"] = "function", + ["endlocal"] = "function", + ["enabledelayedexpansion"] = "function", + ["set"] = "function", + ["echo"] = "function", + ["rd"] = "function", + ["xcopy"] = "function", + ["del"] = "function", + ["ren"] = "function", + ["rmdir"] = "function", + ["move"] = "function", + ["copy"] = "function", + ["find"] = "function", + ["exit"] = "function", + ["pause"] = "function", + ["choice"] = "function", + ["command"] = "function", + ["cmd"] = "function", + ["shift"] = "function", + ["attrib"] = "function", + ["type"] = "function", + ["sort"] = "function", + ["cd"] = "function", + ["chdir"] = "function", + ["md"] = "function", + ["mkdir"] = "function", + ["forfiles"] = "function", }, } |