Commit graph

115 commits

Author SHA1 Message Date
Steven Arcangeli
491e2fc564 fix(zig): update queries for new zig treesitter parser 2024-08-30 09:31:32 -07:00
Qiu Yu
92f93f4e15
feat(proto): add treesitter query for grpc in proto filetype (#404) 2024-08-28 17:38:19 -07:00
Qiu Yu
e585934fef
feat(starlark): treesitter support for Starlark (#402) 2024-08-21 20:40:59 -07:00
Qiu Yu
bb95e7fed7
feat(just): treesitter support for Just (#401) 2024-08-21 16:48:39 -07:00
Nicholas Ciechanowski
8d2a6c2ffa
fix(php): update treesitter query (#400) 2024-08-20 09:31:33 -07:00
WieeRd
263beeb929
feat(toml): treesitter support for TOML tables (#396)
* feat(toml): treesitter support for TOML tables

* test(toml): add test data for TOML documents
2024-08-12 09:21:46 -07:00
Steven Arcangeli
e75a3df2c2 fix(ruby): missing methods in treesitter backend (#382) 2024-07-23 17:29:06 -07:00
Steven Arcangeli
75de06f8ed lint: autoformat all tree-sitter query files 2024-06-01 20:50:39 -07:00
brunnseb
7045e7cb00
feat(tsx): treesitter support for JSX symbols (#365)
Co-authored-by: Sebastian <sebastian.brunner@ti8m.ch>
2024-04-19 10:56:26 -04:00
Micah Halter
2f1b8979d2
fix(julia): treesitter queries changed upstream (#362)
* fix(julia): treesitter queries changed upstream

* fix(julia): for fully qualified functions show entire expression

* fix(julia): fix short function definitions

* fix(julia): show all of the function definition expression because just the name is useless with multiple dispatch

* fix(julia): update tests to match new function symbol names
2024-04-16 16:30:37 -04:00
Gordon Cassie
5961a1afc0
feat(zig): basic treesitter support for zig. (#359)
* Add basic support for navigating zig files.

* Fix struct start position.

* Add test and tagged unions.

* Add test.
2024-04-16 16:27:37 -04:00
emmanueltouzery
c8a40b1266
feat(treesitter): groovy support (#351) 2024-03-11 16:29:45 -07:00
Steven Arcangeli
d21482d3be fix(javascript): treesitter queries changed upstream 2024-02-02 16:21:39 -08:00
emmanueltouzery
ef08437108
fix(vim treesitter): support functions with field expression names (#332) 2023-12-07 20:53:35 -08:00
Slotos
2d169d3497
feat: set scope from node captures and add basic query documentation (#318)
* Process scope captures

This lets us avoid complex querying when extracting scope.
As long as the capture includes a scoping node in a `@scope` capture,
its text will be extracted and used as a scope value.
If "public" is named differently in some language,
`#set @scope "text" "public"` will do the trick for a cost of an
additional query.

* Add basic query documentation to readme and vimdoc

* Add reusable language extensions info to readme
2023-11-10 07:39:37 -08:00
Steven Arcangeli
23a739c0ac refactor: rename @type capture to @symbol 2023-10-31 16:51:08 -07:00
Colin Kennedy
eb301a4763
feat(treesitter): support for objdump files (#320)
* Added aerial queries for objdump

Added objdump to minimal_init.lua

* ci: tests fail if changes to snapshot files

* cleanup: comments on test filetype special cases

* test: add objdump test snapshots

---------

Co-authored-by: Steven Arcangeli <stevearc@stevearc.com>
2023-10-31 07:55:51 -07:00
Slotos
3a3baf0930
feat(treesitter): ruby queries can set the scope of methods (#317)
This has direct impact on highlighting. If scope is set and set to
anything but "public", highlighter will use a separate highlight for
the corresponding entry. This was previously used by Elixir extension
by manually processing nodes.

Ruby queries are updated to deal with both predicate and statement
versions of scope setting.
2023-10-19 21:35:32 -07:00
Ryan Dale
c306ffcf34
feat(treesitter): support for snakemake (#316)
* add snakemake, based off of python

* add snakemake test file

* add example (but currently incorrect) test file

* fix tests
2023-10-17 07:58:08 -07:00
Steven Arcangeli
340d0197d7 fix(cpp): add support for declared functions (#314) 2023-10-15 17:58:21 -07:00
Slotos
a2368d1c4b
fix(ts): improve ruby handling of singletons and methods (#293)
Ruby allows us to do a lot of weird stuff, and having weirdness glaring
at us from the side panel can be handy for when we sober up and start
cleaning.

This commit handles a number of singleton class manipulation cases,
as well as adds a reciever information to singleton method declarations.
2023-09-18 10:40:21 -07:00
Slotos
fa8c408b76
feat(ts): add ruby support for ruby operator methods (#292)
Ruby supports some operators overloading by declaring a method with the
operator as the method name, e.g. `def <=>(other)`. Tree sitter ruby
parser recognises these method names as operators, not identifiers, and
as such existing queries skip over them.

This commit adds a query that captures "operator" instance methods.
2023-09-18 08:22:59 -07:00
Don Perignom
bed048ddef
feat(ts): support for more solidity symbols (#290) 2023-09-16 10:08:41 -07:00
Don Perignom
9bcfbaf7a7
fix: add treesitter support for JS / TS / TSX generator functions (#289)
* fix: add JS as TS generator functions

* feat: add TSX generator functions
2023-09-15 06:36:17 -07:00
Steven Arcangeli
e54cae0df0 feat: experimental support for navigating to symbol names (#279)
Using the treesitter backend, we can use the same "selectionRange" logic
that LSP symbol sources use to provide more detailed information about
where the name of the symbol is. We already use the LSP information to
change how we navigate the cursor to symbols, so once we parse this
information from treesitter it will automatically get used.

I'm putting this behind an experimental config option for now so we can
test it out for a while before making a sudden change to the behavior.
2023-08-09 21:47:48 -07:00
Jaehwang Jung
de460a4a29
feat: treesitter supports markdown setext_heading (#276) 2023-08-06 17:53:36 -07:00
Steven Arcangeli
1a9896a7ca refactor: don't display anonymous lua functions
I find that showing anonymous functions is never helpful. These are
typically passed in as callback arguments to other functions, and are
not helpful to show in a symbol tree. They also break my expectations
for navigation.
2023-07-29 09:17:36 -07:00
emmanueltouzery
603ffde23a
feat(elixir): support parameterless functions (#277) 2023-07-11 08:09:41 -07:00
Steven Arcangeli
e22facd3a6 fix: update julia queries for upstream parser changes 2023-07-10 18:10:42 -07:00
Yifan Song
7c2a432238
feat: add solidity treesitter support (#273)
* Add query for solidity

* Add solidity to readme treesitter supported list

* Add method in library

* 修改方法图标显示

* interface包含function

* Reformat solidity queries and add tests to solidity

---------

Co-authored-by: lightnlightning <lightning004@outlook.com>
Co-authored-by: lightnlightning <116029224+lightnlightning@users.noreply.github.com>
2023-06-25 09:26:17 -07:00
Steven Arcangeli
4b6da0b074 fix(ts)(julia): include namespace in function name if in declaration (#260) 2023-06-24 10:01:49 -07:00
Steven Arcangeli
4e7da79523 fix(ts)(julia): support for namespaced function definitions (#260) 2023-06-16 10:54:55 -07:00
Steven Arcangeli
79ebaf01eb fix(ts)(julia): support for namespaced short function definitions (260) 2023-06-02 08:47:54 -07:00
Colin Kennedy
f88fb659a4 Added WIP USD-filetype unittests 2023-05-15 21:58:25 -07:00
Colin Kennedy
a3c227e681 Added USD related queries and tests 2023-05-15 21:36:35 -07:00
Colin Kennedy
f9247b41aa Added USD-related properties (attributes, relationships, variantSets) 2023-05-15 21:28:06 -07:00
Colin Kennedy
249e78fe4c Simplified existing code 2023-05-02 22:10:30 -07:00
Colin Kennedy
77ef86ecc9 Added USD syntax tree support 2023-04-29 12:19:12 -07:00
Steven Arcangeli
bc2bc8b5d0 fix: help parser has been renamed to vimdoc 2023-04-01 12:56:56 -07:00
Steven Arcangeli
1e0c546c2c feat(ts): treesitter supports variables in python (#227) 2023-03-15 22:03:57 -07:00
Emmanuel Touzery
9943fc88ed treesitter: support for arrow methods for JS/TS(X) 2023-02-24 20:07:20 +01:00
Emmanuel Touzery
94486d6f1d elixir: skip apidocs 2023-02-21 19:25:04 +01:00
Steven Arcangeli
06c6b4c8eb fix: enforce treesitter backend uses LSP SymbolKind values (#219) 2023-02-14 08:44:49 -08:00
Emmanuel Touzery
f2b04c7c2c elixir exunit, label test+describe 2023-02-07 17:41:08 +01:00
Emmanuel Touzery
391e68350d support for elixir exunit tests 2023-02-06 22:08:31 +01:00
Steven Arcangeli
9921808e0d
Merge pull request #216 from emmanueltouzery/elixir_treesitter_constants
elixir tree-sitter queries: add constants
2023-02-06 12:23:30 -08:00
Steven Arcangeli
2b71abbcc3 feat: jest support for tsx (#47) 2023-02-05 12:03:24 -08:00
Emmanuel Touzery
7ea5a44778 elixir tree-sitter queries: add constants 2023-02-05 19:03:26 +01:00
Steven Arcangeli
960cf86d9a feat: jest support for typescript (#47) 2023-02-04 12:58:26 -08:00
Mika Raunio
e213ddb9aa Add basic HTML treesitter support 2023-01-31 18:39:53 +02:00