Skip to content

Commit

Permalink
revert(xml): remove 'xml2lua'
Browse files Browse the repository at this point in the history
  • Loading branch information
linrongbin16 committed Jun 27, 2024
1 parent cfa649c commit 3915497
Show file tree
Hide file tree
Showing 13 changed files with 6 additions and 1,379 deletions.
23 changes: 0 additions & 23 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,29 +66,6 @@ jobs:
cp -rf ./colors-8.05.26/lua/colors.lua ./lua/commons/color/hsl.lua
rm -rf ./colors-8.05.26
sed -i '1 i\---@diagnostic disable' ./lua/commons/color/hsl.lua
- name: Add xml2lua.lua
if: ${{ github.ref != 'refs/heads/main' }}
run: |
echo "pwd"
echo $PWD
git clone --depth=1 https://github.com/manoelcampos/xml2lua.git ~/.xml2lua
cp ~/.xml2lua/xml2lua.lua ./lua/commons/xml2lua.lua
cp ~/.xml2lua/XmlParser.lua ./lua/commons/XmlParser.lua
echo 'ls -lh'
ls -lh
rm -rf ./lua/commons/xmlhandler
mkdir -p ./lua/commons/xmlhandler
cp -f ~/.xml2lua/xmlhandler/dom.lua ./lua/commons/xmlhandler/dom.lua
cp -f ~/.xml2lua/xmlhandler/tree.lua ./lua/commons/xmlhandler/tree.lua
cp -f ~/.xml2lua/xmlhandler/print.lua ./lua/commons/xmlhandler/print.lua
sed -i '1 i\---@diagnostic disable: luadoc-miss-module-name, param-type-mismatch, discard-returns, undefined-global' ./lua/commons/xmlhandler/dom.lua
sed -i '1 i\---@diagnostic disable: luadoc-miss-module-name, param-type-mismatch, discard-returns, undefined-global' ./lua/commons/xmlhandler/tree.lua
sed -i '1 i\---@diagnostic disable: luadoc-miss-module-name, param-type-mismatch, discard-returns, undefined-global' ./lua/commons/xmlhandler/print.lua
sed -i '1 i\---@diagnostic disable: luadoc-miss-module-name, param-type-mismatch, discard-returns, undefined-global' ./lua/commons/xml2lua.lua
sed -i '1 i\---@diagnostic disable: luadoc-miss-module-name, param-type-mismatch, discard-returns, undefined-global' ./lua/commons/XmlParser.lua
sed -i 's/require("XmlParser/require("commons.XmlParser/g' ./lua/commons/xml2lua.lua
sed -i 's/require("xmlhandler/require("commons.xmlhandler/g' ./lua/commons/xml2lua.lua
sed -i 's/require("xmlhandler/require("commons.xmlhandler/g' ./lua/commons/XmlParser.lua
- uses: cargo-bins/cargo-binstall@main
- name: Selene
run: |
Expand Down
6 changes: 0 additions & 6 deletions .luacov
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,8 @@ modules = {
}

exclude = {
"lua/commons/_json.lua",
"lua/commons/_system.lua",
"lua/commons/_uri.lua",
"lua/commons/async.lua",
"lua/commons/color/hsl.lua",
"lua/commons/xml2lua.lua",
"lua/commons/XmlParser.lua",
"lua/commons/xmlhandler/dom.lua",
"lua/commons/xmlhandler/tree.lua",
"lua/commons/xmlhandler/print.lua",
}
6 changes: 6 additions & 0 deletions .markdownlint.jsonc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
// // Line length
// "MD013": false,
// // Fenced code blocks should have a language specified
// "MD040": false,
}
5 changes: 0 additions & 5 deletions .styluaignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,3 @@ lua/commons/_system.lua
lua/commons/_uri.lua
lua/commons/async.lua
lua/commons/color/hsl.lua
lua/commons/xml2lua.lua
lua/commons/XmlParser.lua
lua/commons/xmlhandler/dom.lua
lua/commons/xmlhandler/tree.lua
lua/commons/xmlhandler/print.lua
4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
<!-- markdownlint-disable MD001 MD013 MD034 MD033 MD051 -->

# commons.nvim

<p>
Expand All @@ -18,7 +16,6 @@ This lua library includes multiple modules:
- Utilities for lua tables, strings, numbers and other data structures.
- File IO & path operations.
- URL encode/decode.
- XML parser/renderer.
- Spawn child-process & coroutine.
- Logging system with python-logging like features.
- Colors & syntax highlight utilities, HSL calculation & terminal rendering.
Expand All @@ -33,7 +30,6 @@ Please check [documentation](https://linrongbin16.github.io/commons.nvim) for mo
## Embedded Libraries

- [\_system.lua](https://github.com/neovim/neovim/blob/master/runtime/lua/vim/_system.lua): Neovim [vim.system()](<https://neovim.io/doc/user/lua.html#vim.system()>) source file.
- [xml2lua](https://github.com/manoelcampos/xml2lua): XML Parser written entirely in Lua that works for Lua 5.1+. Convert XML to and from Lua Tables.
- [uri.lua](https://github.com/neovim/neovim/blob/master/runtime/lua/vim/uri.lua): Neovim [vim.uri_encode()](<https://neovim.io/doc/user/lua.html#vim.uri_encode()>) source file.
- [async.lua](https://github.com/lewis6991/async.nvim): Small aync library for Neovim plugins.
- [colors.lua](http://sputnik.freewisdom.org/lib/colors/): HSL Color Theory Computation in Lua.
Expand Down
5 changes: 0 additions & 5 deletions codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,3 @@ ignore:
- "lua/commons/_uri.lua"
- "lua/commons/async.lua"
- "lua/commons/color/hsl.lua"
- "lua/commons/xml2lua.lua"
- "lua/commons/XmlParser.lua"
- "lua/commons/xmlhandler/dom.lua"
- "lua/commons/xmlhandler/tree.lua"
- "lua/commons/xmlhandler/print.lua"
Loading

0 comments on commit 3915497

Please sign in to comment.