Skip to content

Commit ebfe630

Browse files
committed
refactor: remove useless code
Signed-off-by: loongtao.zhang <[email protected]>
1 parent b1994a6 commit ebfe630

36 files changed

+5
-5684
lines changed

.github/workflows/bench.yml

-58
This file was deleted.

.github/workflows/clean.yml

-45
This file was deleted.

.github/workflows/fuzz.yml

-37
This file was deleted.

.github/workflows/playground.yml

-49
This file was deleted.

.github/workflows/publish.yml

-24
This file was deleted.

.github/workflows/publish_inline.yml

-24
This file was deleted.

Cargo.toml

-39
This file was deleted.

README.md

+1-52
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,3 @@
11
# tree-sitter-loongdoc
22

3-
LoongDoc is normalized asciidoc. LoongDocs make **BEST EFFORT** to keep compatibility with asciidoc.
4-
5-
This repo contains:
6-
7-
- tree-sitter-loongdoc for parse blocks.
8-
- tree-sitter-loongdoc_inline for parse inline grammar.
9-
- loongdoc: a wrapper to provide a rust ast. \[WIP]
10-
11-
There two website for this repo:
12-
13-
- <https://cathaysia.github.io/tree-sitter-loongdoc/> current loongdoc spec.
14-
- <https://tree-sitter-loongdoc.vercel.app/> a playground for loongdoc.
15-
16-
## Usage
17-
18-
add the following lines to your tree-sitter configuration:
19-
20-
### Add this repo to your lazy.nvim config:
21-
22-
```lua
23-
{
24-
'cathaysia/tree-sitter-loongdoc',
25-
},
26-
```
27-
28-
```lua
29-
vim.filetype.add({
30-
extension = {
31-
adoc = 'loongdoc'
32-
},
33-
})
34-
35-
local parser_config = require('nvim-treesitter.parsers').get_parser_configs()
36-
parser_config.loongdoc = {
37-
install_info = {
38-
url = 'https://github.com/cathaysia/tree-sitter-loongdoc.git',
39-
files = { 'tree-sitter-loongdoc/src/parser.c', 'tree-sitter-loongdoc/src/scanner.c' },
40-
branch = 'master',
41-
generate_requires_npm = false,
42-
requires_generate_from_grammar = false,
43-
},
44-
}
45-
parser_config.loongdoc_inline = {
46-
install_info = {
47-
url = 'https://github.com/cathaysia/tree-sitter-loongdoc.git',
48-
files = { 'tree-sitter-loongdoc_inline/src/parser.c', 'tree-sitter-loongdoc_inline/src/scanner.c' },
49-
branch = 'master',
50-
generate_requires_npm = false,
51-
requires_generate_from_grammar = false,
52-
},
53-
}
54-
```
3+
[loongdoc](https://cathaysia.github.io/tree-sitter-loongdoc/) grammar for tree-sitter.

benches/bench_big_file.rs

-39
This file was deleted.

0 commit comments

Comments
 (0)