6 个版本
0.3.1 | 2024 年 8 月 4 日 |
---|---|
0.3.0 | 2024 年 8 月 2 日 |
0.1.0 | 2024 年 7 月 20 日 |
0.0.4 | 2024 年 6 月 16 日 |
在 文本编辑器 中排名第 428
每月下载量 370
1.5MB
42K SLoC
tree-sitter-loongdoc
LoongDoc 是规范化的 asciidoc。LoongDocs 旨在尽可能保持与 asciidoc 的兼容性。
此仓库包含
- 用于解析代码块的 tree-sitter-loongdoc。
- 用于解析内联语法的 tree-sitter-loongdoc_inline。
- loongdoc:提供 Rust AST 的包装器。[进行中]
此仓库有两个网站
- https://cathaysia.github.io/tree-sitter-loongdoc/ 当前 loongdoc 规范。
- https://tree-sitter-loongdoc.vercel.app/ loongdoc 的游乐场。
使用方法
将以下行添加到您的 tree-sitter 配置中
将此仓库添加到您的 lazy.nvim 配置中
{
'cathaysia/tree-sitter-loongdoc',
},
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,
},
}
依赖关系
~2.7–4MB
~71K SLoC