Christian Clason 
							
						 
					 
					
						
						
							
						
						ddb762f401 
					 
					
						
						
							
							docs(treesitter): clean up and update treesitter.txt ( #20142 )  
						
						... 
						
						
						
						* add type annotations to code
* clean up and expand static documentation
* consistent use of tags for static and generated docs 
						
						
					 
					
						2022-09-14 11:08:31 +02:00 
						 
				 
			
				
					
						
							
							
								Quentin Rasmont 
							
						 
					 
					
						
						
							
						
						244a115e49 
					 
					
						
						
							
							feat(treesitter): clarify similar 'get_node_range' functions  
						
						... 
						
						
						
						The private 'get_node_range' function from the languagetree module has
been renamed and remains private as it serve a purpose that is only
relevant inside the languagetree module.
The 'get_node_range' upstreamed from nvim-treesitter in the treesitter
module has been made public as it is in itself a utlity function. 
						
						
					 
					
						2022-08-25 18:01:15 +02:00 
						 
				 
			
				
					
						
							
							
								Quentin Rasmont 
							
						 
					 
					
						
						
							
						
						6b2d42eb03 
					 
					
						
						
							
							feat(treesitter): add ability to retreive a tree/node given a range  
						
						
						
						
					 
					
						2022-08-25 18:01:14 +02:00 
						 
				 
			
				
					
						
							
							
								Christian Clason 
							
						 
					 
					
						
						
							
						
						aa4f9c5341 
					 
					
						
						
							
							refactor(lua): reformat with stylua 0.14.0 ( #19264 )  
						
						... 
						
						
						
						* reformat Lua runtime to make lint CI pass
* reduce max line length to 100 
						
						
					 
					
						2022-07-07 18:27:18 +02:00 
						 
				 
			
				
					
						
							
							
								Christian Clason 
							
						 
					 
					
						
						
							
						
						26966688aa 
					 
					
						
						
							
							fix(treesitter): correct region for string parser ( #18794 )  
						
						... 
						
						
						
						fixes injections for string parsers after eab4d03a32 
						
						
					 
					
						2022-06-02 17:35:16 +02:00 
						 
				 
			
				
					
						
							
							
								Lewis Russell 
							
						 
					 
					
						
						
							
						
						eab4d03a32 
					 
					
						
						
							
							fix(treesitter): offset directive associates range with capture ( #18276 )  
						
						... 
						
						
						
						Previously the `offset!` directive populated the metadata in such a way
that the new range could be attributed to a specific capture. #14046 
made it so the directive simply stored just the new range in the
metadata and information about what capture the range is based from is
lost.
This change reverts that whilst also correcting the docs. 
						
						
					 
					
						2022-05-28 19:22:18 +02:00 
						 
				 
			
				
					
						
							
							
								Christian Clason 
							
						 
					 
					
						
						
							
						
						d200ba654a 
					 
					
						
						
							
							Merge pull request  #18502  from drybalka/fix-languagetree-contains-description  
						
						... 
						
						
						
						treesitter: small improvements of languagetree.lua 
						
						
					 
					
						2022-05-19 09:17:10 +02:00 
						 
				 
			
				
					
						
							
							
								Denys 
							
						 
					 
					
						
						
							
						
						fec944142b 
					 
					
						
						
							
							refactor: simple logic in tree_contains()  
						
						
						
						
					 
					
						2022-05-18 19:28:49 +02:00 
						 
				 
			
				
					
						
							
							
								Denys 
							
						 
					 
					
						
						
							
						
						f66a60805d 
					 
					
						
						
							
							docs: correct description of LanguageTree:contains()  
						
						
						
						
					 
					
						2022-05-18 19:28:41 +02:00 
						 
				 
			
				
					
						
							
							
								Christian Clason 
							
						 
					 
					
						
						
							
						
						aefdc6783c 
					 
					
						
						
							
							chore: format runtime with stylua  
						
						
						
						
					 
					
						2022-05-09 16:31:55 +02:00 
						 
				 
			
				
					
						
							
							
								Chinmay Dalal 
							
						 
					 
					
						
						
							
						
						e481901748 
					 
					
						
						
							
							docs: treesitter.txt - fix overflowing lines, document minimum_language_version ( #17286 )  
						
						
						
						
					 
					
						2022-02-13 14:43:25 +01:00 
						 
				 
			
				
					
						
							
							
								dundargoc 
							
						 
					 
					
						
						
							
						
						0b0c4f7dfa 
					 
					
						
						
							
							chore: fix typos ( #16816 )  
						
						... 
						
						
						
						Co-authored-by: Sean Dewar <seandewar@users.noreply.github.com >
Co-authored-by: Gregory Anders <greg@gpanders.com >
Co-authored-by: Sebastian Volland <seb@baunz.net >
Co-authored-by: Lewis Russell <lewis6991@gmail.com >
Co-authored-by: zeertzjq <zeertzjq@outlook.com > 
						
						
					 
					
						2022-01-04 11:07:40 -07:00 
						 
				 
			
				
					
						
							
							
								dundargoc 
							
						 
					 
					
						
						
							
						
						caa6992a10 
					 
					
						
						
							
							chore: fix typos ( #16361 )  
						
						... 
						
						
						
						Co-authored-by: Brede Yabo Sherling Kristensen <bredeyabo@hotmail.com >
Co-authored-by: zeertzjq <zeertzjq@outlook.com >
Co-authored-by: István Donkó <istvan.donko@gmail.com >
Co-authored-by: Julian Berman <Julian@GrayVines.com >
Co-authored-by: bryant <bryant@users.noreply.github.com >
Co-authored-by: Michael Lingelbach <m.j.lbach@gmail.com >
Co-authored-by: nlueb <9465658+nlueb@users.noreply.github.com >
Co-authored-by: Leonhard Saam <leonhard.saam@yahoo.com >
Co-authored-by: Jesse Wertheim <jaawerth@gmail.com >
Co-authored-by: dm1try <me@dmitry.it >
Co-authored-by: Jakub Łuczyński <doubleloop@o2.pl >
Co-authored-by: Louis Lebrault <louis.lebrault@gmail.com >
Co-authored-by: Brede Yabo Sherling Kristensen <bredeyabo@hotmail.com >
Co-authored-by: zeertzjq <zeertzjq@outlook.com >
Co-authored-by: István Donkó <istvan.donko@gmail.com >
Co-authored-by: Julian Berman <Julian@GrayVines.com >
Co-authored-by: bryant <bryant@users.noreply.github.com >
Co-authored-by: Michael Lingelbach <m.j.lbach@gmail.com >
Co-authored-by: nlueb <9465658+nlueb@users.noreply.github.com >
Co-authored-by: Leonhard Saam <leonhard.saam@yahoo.com >
Co-authored-by: Jesse Wertheim <jaawerth@gmail.com >
Co-authored-by: dm1try <me@dmitry.it >
Co-authored-by: Jakub Łuczyński <doubleloop@o2.pl >
Co-authored-by: Louis Lebrault <louis.lebrault@gmail.com > 
						
						
					 
					
						2021-11-27 11:10:48 -05:00 
						 
				 
			
				
					
						
							
							
								Gregory Anders 
							
						 
					 
					
						
						
							
						
						c2a211b8e3 
					 
					
						
						
							
							docs: make Lua docstrings consistent  #15255  
						
						... 
						
						
						
						The official developer documentation in in :h dev-lua-doc specifies to
use "--@" for special/magic tokens. However, this format is not
consistent with EmmyLua notation (used by some Lua language servers) nor
with the C version of the magic docstring tokens which use three comment
characters.
Further, the code base is currently split between usage of "--@",
"---@", and "--- @". In an effort to remain consistent, change all Lua
magic tokens to use "---@" and update the developer documentation
accordingly. 
						
						
					 
					
						2021-08-22 13:55:28 -07:00 
						 
				 
			
				
					
						
							
							
								TJ DeVries 
							
						 
					 
					
						
						
							
						
						27da5511a0 
					 
					
						
						
							
							docs: Treesitter ( #13260 )  
						
						... 
						
						
						
						* doc & fixes: Generate treesitter docs
* fixup to treesitter-core
* docs(treesitter): fix docs for most functions
Co-authored-by: Thomas Vigouroux <tomvig38@gmail.com > 
						
						
					 
					
						2021-05-01 08:19:48 -04:00 
						 
				 
			
				
					
						
							
							
								Steven Sojka 
							
						 
					 
					
						
						
							
						
						8bea39f372 
					 
					
						
						
							
							feat(treesitter): allow injections to be configured through directives  
						
						
						
						
					 
					
						2021-04-02 12:48:16 -05:00 
						 
				 
			
				
					
						
							
							
								Simon Hauser 
							
						 
					 
					
						
						
							
						
						6b7cc45c48 
					 
					
						
						
							
							fix: treesitter languagetree crash when using telescope buffer previewer ( #13986 )  
						
						
						
						
					 
					
						2021-02-23 21:39:35 -05:00 
						 
				 
			
				
					
						
							
							
								Björn Linse 
							
						 
					 
					
						
						
							
						
						94622ca66b 
					 
					
						
						
							
							buffer updates: add on_reload callback and handle it in treesitter parser  
						
						
						
						
					 
					
						2021-02-10 18:58:46 +01:00 
						 
				 
			
				
					
						
							
							
								Björn Linse 
							
						 
					 
					
						
						
							
						
						fa5f583981 
					 
					
						
						
							
							treesitter: propagate on_detach event properly  
						
						
						
						
					 
					
						2021-02-10 18:57:49 +01:00 
						 
				 
			
				
					
						
							
							
								Santos Gallegos 
							
						 
					 
					
						
						
							
						
						947f9a04d4 
					 
					
						
						
							
							treesitter: small fixes  
						
						... 
						
						
						
						Mostly typos I found while reading the code. 
						
						
					 
					
						2021-02-07 01:27:38 -05:00 
						 
				 
			
				
					
						
							
							
								Steven Sojka 
							
						 
					 
					
						
						
							
						
						ed558e269a 
					 
					
						
						
							
							fix(languagetree): use tree nodes instead of regions in contains  
						
						
						
						
					 
					
						2021-01-20 06:52:47 -06:00 
						 
				 
			
				
					
						
							
							
								Steven Sojka 
							
						 
					 
					
						
						
							
						
						929f194145 
					 
					
						
						
							
							feat(treesitter): add offset predicate for language injection  
						
						... 
						
						
						
						refactor(treesitter): add directives to queries 
						
						
					 
					
						2020-12-15 07:03:47 -06:00 
						 
				 
			
				
					
						
							
							
								Thomas Vigouroux 
							
						 
					 
					
						
						
							
						
						99007bcc12 
					 
					
						
						
							
							Merge pull request  #13450  from nvim-treesitter/fix-unknown-language-parser  
						
						... 
						
						
						
						fix(treesitter): don't throw an error for missing injected langs 
						
						
					 
					
						2020-12-10 11:12:39 +01:00 
						 
				 
			
				
					
						
							
							
								Steven Sojka 
							
						 
					 
					
						
						
							
						
						e15c5f58df 
					 
					
						
						
							
							fix(treesitter): don't throw an error for missing injected langs  
						
						
						
						
					 
					
						2020-12-04 16:56:29 -06:00 
						 
				 
			
				
					
						
							
							
								Steven Sojka 
							
						 
					 
					
						
						
							
						
						2985c17867 
					 
					
						
						
							
							fix(treesitter): incorrect method name call  
						
						
						
						
					 
					
						2020-12-04 16:15:47 -06:00 
						 
				 
			
				
					
						
							
							
								Thomas Vigouroux 
							
						 
					 
					
						
						
							
						
						e6d1656831 
					 
					
						
						
							
							languagetree: call changedtree callback per tree  
						
						... 
						
						
						
						Also fix a typo 
						
						
					 
					
						2020-11-24 16:53:03 +01:00 
						 
				 
			
				
					
						
							
							
								Thomas Vigouroux 
							
						 
					 
					
						
						
							
						
						52d76f0a32 
					 
					
						
						
							
							fix(treesitter): allow ranges in set_included_ranges  
						
						
						
						
					 
					
						2020-11-23 15:09:32 +01:00 
						 
				 
			
				
					
						
							
							
								Steven Sojka 
							
						 
					 
					
						
						
							
						
						1a631026a9 
					 
					
						
						
							
							feat(treesitter): add language tree  
						
						... 
						
						
						
						Implement the LanguageTree structure to enable language injection.
This is done be removing the old Parser metatable and replacing by the
new structure, with the same API (almost).
Some noticeable differences :
  - `parser:parse()` now returns a table of trees
  - There is no incremental parsing for child (injected) languages
Co-authored-by: Thomas Vigouroux <tomvig38@gmail.com > 
						
						
					 
					
						2020-11-23 08:06:17 +01:00