diff options
| author | Santos Gallegos <stsewd@protonmail.com> | 2020-07-26 09:38:53 -0500 |
|---|---|---|
| committer | Thomas Vigouroux <39092278+vigoux@users.noreply.github.com> | 2020-07-27 09:16:26 +0200 |
| commit | 6f01384cb2d60db4b5990085422711c0a764ed7f (patch) | |
| tree | dbdec53dd3a92957a4d6c9ceba833f5fd52d57d0 /doc | |
| parent | 121c44a23bebefe2272da295d81d9eb5929e4cc4 (diff) | |
Parsers: add reStructuredText
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/nvim-treesitter.txt | 36 |
1 files changed, 32 insertions, 4 deletions
diff --git a/doc/nvim-treesitter.txt b/doc/nvim-treesitter.txt index 3b08e662..82a6539b 100644 --- a/doc/nvim-treesitter.txt +++ b/doc/nvim-treesitter.txt @@ -1,4 +1,4 @@ -*nvim-treesitter* +*nvim-treesitter* Minimum version of neovim: nightly @@ -35,7 +35,7 @@ By default, everything is disabled. To enable support for features, in your `ini disable = { 'c', 'rust' }, -- list of language that will be disabled custom_captures = { -- mapping of user defined captures to highlight groups -- ["foo.bar"] = "Identifier" -- highlight own capture @foo.bar with highlight group "Identifier", see :h nvim-treesitter-query-extensions - }, + }, }, incremental_selection = { enable = true, @@ -165,7 +165,7 @@ get_node_text(node, bufnr) *ts_utils.get_node_text* return the text content of a node is_parent(dest, source) *ts_utils.is_parent* - determines wether `dest` is a parent of `source` + determines wether `dest` is a parent of `source` return a boolean get_named_children(node) *ts_utils.get_named_children* @@ -176,7 +176,7 @@ get_next_node(node, allow_switch_parent, allow_next_parent) *ts_utils.get_next_n if no node is found, returns `nil`. if `allow_switch_parent` is true, it will allow switching parent when the node is the last node - if `allow_next_parent` is true, it will allow next parent if + if `allow_next_parent` is true, it will allow next parent if the node is the last node and the next parent doesn't have children. get_previous_node(node, allow_switch_parents, allow_prev_parent) *ts_utils.get_previous_node* @@ -361,4 +361,32 @@ This is left as an exercise for the reader. For includes: `#include` in C, `use` or `extern crate` in Rust, or `require` in Lua +`TSText` + *hl-TSText* +For strings considered text in a markup language. + +`TSStrong` + *hl-TSStrong* +For text to be represented with strong. + +`TSEmphasis` + *hl-TSEmphasis* +For text to be represented with emphasis. + +`TSUnderline` + *hl-TSUnderline* +For text to be represented with an underline. + +`TSTitle` + +Text that is part of a title. + +`TSLiteral` + *hl-TSLiteral* +Literal text. + +`TSURI` + *hl-TSURI* +Any URI like a link or email. + vim:tw=78:ts=8:noet:ft=help:norl: |
