1
- //! This crate provides CAMEL_PARSER_NAME language support for the [tree-sitter][] parsing library.
1
+ //! This crate provides CAMEL_PARSER_NAME language support for the [tree-sitter] parsing library.
2
2
//!
3
- //! Typically, you will use the [LANGUAGE][ ] constant to add this language to a
4
- //! tree-sitter [Parser][ ], and then use the parser to parse some code:
3
+ //! Typically, you will use the [` LANGUAGE` ] constant to add this language to a
4
+ //! tree-sitter [` Parser` ], and then use the parser to parse some code:
5
5
//!
6
6
//! ```
7
7
//! let code = r#"
15
15
//! assert!(!tree.root_node().has_error());
16
16
//! ```
17
17
//!
18
- //! [Parser]: https://docs.rs/tree-sitter/* /tree_sitter/struct.Parser.html
18
+ //! [` Parser` ]: https://docs.rs/tree-sitter/RUST_BINDING_VERSION /tree_sitter/struct.Parser.html
19
19
//! [tree-sitter]: https://tree-sitter.github.io/
20
20
21
21
use tree_sitter_language:: LanguageFn ;
@@ -24,12 +24,10 @@ extern "C" {
24
24
fn tree_sitter_PARSER_NAME ( ) -> * const ( ) ;
25
25
}
26
26
27
- /// The tree-sitter [`LanguageFn`][LanguageFn] for this grammar.
28
- ///
29
- /// [LanguageFn]: https://docs.rs/tree-sitter-language/*/tree_sitter_language/struct.LanguageFn.html
27
+ /// The tree-sitter [`LanguageFn`] for this grammar.
30
28
pub const LANGUAGE : LanguageFn = unsafe { LanguageFn :: from_raw ( tree_sitter_PARSER_NAME) } ;
31
29
32
- /// The content of the [`node-types.json`][] file for this grammar.
30
+ /// The content of the [`node-types.json`] file for this grammar.
33
31
///
34
32
/// [`node-types.json`]: https://tree-sitter.github.io/tree-sitter/using-parsers/6-static-node-types
35
33
pub const NODE_TYPES : & str = include_str ! ( "../../src/node-types.json" ) ;
0 commit comments