-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: loongtao.zhang <[email protected]>
- Loading branch information
Showing
39 changed files
with
5 additions
and
5,826 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,4 +40,3 @@ jobs: | |
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: docs/site | ||
force_orphan: true |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.