Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

revert(xml): remove 'xml2lua' #277

Merged
merged 2 commits into from
Jun 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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,
// Inline HTML
"MD033": 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
Loading