From 89b390a6d91d61c87eb464995e81d2978ffccfe1 Mon Sep 17 00:00:00 2001 From: Gurjeet Singh Date: Mon, 19 Sep 2022 23:10:57 -0700 Subject: [PATCH] Remove TreeSitterConfig.name from documentation TreeSitterConfig doesn't seem to have the `name` attribute, anymore. I discovered this discrepancy while integrating Markdown language parser in PR #380. --- manual/src/adding_a_parser.md | 3 --- 1 file changed, 3 deletions(-) diff --git a/manual/src/adding_a_parser.md b/manual/src/adding_a_parser.md index 1b6903b9d4..e9c4fb7a43 100644 --- a/manual/src/adding_a_parser.md +++ b/manual/src/adding_a_parser.md @@ -51,7 +51,6 @@ Add an entry to `tree_sitter_parser.rs` for your language. Json => { let language = unsafe { tree_sitter_json() }; TreeSitterConfig { - name: "JSON", language, atom_nodes: vec!["string"].into_iter().collect(), delimiter_tokens: vec![("{", "}"), ("[", "]")], @@ -64,8 +63,6 @@ Json => { } ``` -`name` is the human-readable name shown in the UI. - `atom_nodes` is a list of tree-sitter node names that should be treated as atoms even though the nodes have children. This is common for things like string literals or interpolated strings, where the