diff options
Diffstat (limited to 'runtime/doc/news.txt')
-rw-r--r-- | runtime/doc/news.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/doc/news.txt b/runtime/doc/news.txt index 77345e6b19..6a29efdd9c 100644 --- a/runtime/doc/news.txt +++ b/runtime/doc/news.txt @@ -97,12 +97,12 @@ TREESITTER capture IDs to a list of nodes that need to be iterated over. For backwards compatibility, an option `all=false` (only return the last matching node) is provided that will be removed in a future release. - • |vim.treesitter.language.get_filetypes()| always includes the {language} argument in addition to explicitly registered filetypes. - • |vim.treesitter.language.get_lang()| falls back to the {filetype} argument if no languages are explicitly registered. +• |vim.treesitter.language.add()| returns `true` if a parser was loaded + successfully and `nil,errmsg` otherwise instead of throwing an error. TUI |