Crates.io | tree-sitter-loongdoc-inline |
lib.rs | tree-sitter-loongdoc-inline |
version | 0.3.1 |
source | src |
created_at | 2024-06-08 03:11:19.579683 |
updated_at | 2024-08-04 10:25:12.492647 |
description | loongdocInline grammar for tree-sitter |
homepage | |
repository | https://github.com/cathaysia/tree-sitter-loongdoc |
max_upload_size | |
id | 1265388 |
size | 1,544,911 |
LoongDoc is normalized asciidoc. LoongDocs make BEST EFFORT to keep compatibility with asciidoc.
This repo contains:
There two website for this repo:
add the following lines to your tree-sitter configuration:
{
'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,
},
}