Skip to content

Commit

Permalink
Remove TreeSitterConfig.name from documentation
Browse files Browse the repository at this point in the history
TreeSitterConfig doesn't seem to have the `name` attribute, anymore.

I discovered this discrepancy while integrating Markdown language parser
in PR #380.
  • Loading branch information
gurjeet authored and Wilfred committed Oct 25, 2022
1 parent b9d44ae commit cbfc70c
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions manual/src/adding_a_parser.md
Original file line number Diff line number Diff line change
Expand Up @@ -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![("{", "}"), ("[", "]")],
Expand All @@ -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
Expand Down

0 comments on commit cbfc70c

Please sign in to comment.