Skip to content

Commit

Permalink
refactor: remove useless code
Browse files Browse the repository at this point in the history
Signed-off-by: loongtao.zhang <[email protected]>
  • Loading branch information
cathaysia committed Aug 14, 2024
1 parent 00420fb commit a5a2b78
Show file tree
Hide file tree
Showing 39 changed files with 5 additions and 5,826 deletions.
58 changes: 0 additions & 58 deletions .github/workflows/bench.yml

This file was deleted.

45 changes: 0 additions & 45 deletions .github/workflows/clean.yml

This file was deleted.

1 change: 0 additions & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,3 @@ jobs:
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/site
force_orphan: true
37 changes: 0 additions & 37 deletions .github/workflows/fuzz.yml

This file was deleted.

49 changes: 0 additions & 49 deletions .github/workflows/playground.yml

This file was deleted.

24 changes: 0 additions & 24 deletions .github/workflows/publish.yml

This file was deleted.

24 changes: 0 additions & 24 deletions .github/workflows/publish_inline.yml

This file was deleted.

39 changes: 0 additions & 39 deletions Cargo.toml

This file was deleted.

53 changes: 1 addition & 52 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,54 +1,3 @@
# tree-sitter-loongdoc

LoongDoc is normalized asciidoc. LoongDocs make **BEST EFFORT** to keep compatibility with asciidoc.

This repo contains:

- tree-sitter-loongdoc for parse blocks.
- tree-sitter-loongdoc_inline for parse inline grammar.
- loongdoc: a wrapper to provide a rust ast. \[WIP]

There two website for this repo:

- <https://cathaysia.github.io/tree-sitter-loongdoc/> current loongdoc spec.
- <https://tree-sitter-loongdoc.vercel.app/> a playground for loongdoc.

## Usage

add the following lines to your tree-sitter configuration:

### Add this repo to your lazy.nvim config:

```lua
{
'cathaysia/tree-sitter-loongdoc',
},
```

```lua
vim.filetype.add({
extension = {
adoc = 'loongdoc'
},
})

local parser_config = require('nvim-treesitter.parsers').get_parser_configs()
parser_config.loongdoc = {
install_info = {
url = 'https://github.com/cathaysia/tree-sitter-loongdoc.git',
files = { 'tree-sitter-loongdoc/src/parser.c', 'tree-sitter-loongdoc/src/scanner.c' },
branch = 'master',
generate_requires_npm = false,
requires_generate_from_grammar = false,
},
}
parser_config.loongdoc_inline = {
install_info = {
url = 'https://github.com/cathaysia/tree-sitter-loongdoc.git',
files = { 'tree-sitter-loongdoc_inline/src/parser.c', 'tree-sitter-loongdoc_inline/src/scanner.c' },
branch = 'master',
generate_requires_npm = false,
requires_generate_from_grammar = false,
},
}
```
[loongdoc](https://cathaysia.github.io/tree-sitter-loongdoc/) grammar for tree-sitter.
39 changes: 0 additions & 39 deletions benches/bench_big_file.rs

This file was deleted.

Loading

0 comments on commit a5a2b78

Please sign in to comment.