Commit graph

265 commits

Author SHA1 Message Date
Thomas Vigouroux
3faaeb479b locals(lua): simplify args 2020-07-08 22:16:53 +02:00
Thomas Vigouroux
f9844d359e highlight(lua): fix overlapping queries 2020-07-08 22:16:53 +02:00
Stephan Seitz
b6df2329bd Introduce @definition.import for Python/Javascript 2020-07-08 18:00:35 +02:00
Stephan Seitz
0e80b89935 Highlight complete type definition 2020-07-08 17:47:44 +02:00
Stephan Seitz
dc324e44ad Python locals/highlights: Parameters can be optionally typed 2020-07-08 17:47:44 +02:00
Thomas Vigouroux
0d2385407e
Add Rust queries (#57)
* queries(rust): add highlight query.

Also slightly changes the way constructors are highlighted.

* highglight(rust): use new query syntax
2020-07-08 12:35:53 +02:00
Thomas Vigouroux
6ce0235e74 docs: advertise module-template in CONTRIBUTING.md 2020-07-08 11:48:47 +02:00
Steven Sojka
26b3b3311e fix(refactor): highlight def perf issue fix 2020-07-08 09:55:12 +02:00
Steven Sojka
884080f89a feat(configs): dynamic module defintions 2020-07-07 13:53:23 +02:00
Stephan Seitz
3e8b5a30e2 Use <details> for checkhealth output in bug report template
The output of checkhealth can be quite lengthy.

Plus fix position of *** to make text render bold
2020-07-06 21:23:57 +02:00
Stephan Seitz
27d7a0ffff Add style-check script 2020-07-06 11:15:17 +02:00
Stephan Seitz
ab1916f385 Allow arbitrary query files in locals.lua
This is a preparation for `textobject` queries.
2020-07-05 21:32:20 +02:00
Stephan Seitz
63c1853674 C/C++ highlights: update to new syntax
This changed the highlight of "switch" to conditional and of "break" to repeat.
2020-07-05 19:48:02 +02:00
Thomas Vigouroux
bf015c168f
Update README.md 2020-07-05 19:27:56 +02:00
Stephan Seitz
5642507f6a Make luacheck happy 2020-07-05 19:21:06 +02:00
Stephan Seitz
1ce1c73249 Add Travis CI with luacheck 2020-07-05 19:21:06 +02:00
Stephan Seitz
07cd0b4d8c C++ locals: Add reference_declarator (analogous to pointer_declarator for C locals) 2020-07-04 21:03:48 +02:00
Steven Sojka
e4cd88baa4 feat(javascript): add import specifier as definition 2020-07-01 22:12:15 +02:00
Thomas Vigouroux
e8af62c843 locals(lua): capture function definition params 2020-07-01 14:46:55 +02:00
Thomas Vigouroux
d15210b22f highlights(lua): update query to new syntax 2020-07-01 14:46:55 +02:00
Sainnhepark
af8192f087 remove doc/tags 2020-07-01 14:13:41 +02:00
Thomas Vigouroux
337756d2f6 docs: add apache Licence
This is to match neovim's licence.
2020-07-01 14:04:18 +02:00
Stephan Seitz
61803eb523 Java highlights: Add binary integer literals 2020-07-01 13:22:46 +02:00
Stephan Seitz
817abb3688 Fix #136: Highlight of TSFloat should be Float not TSFloat 2020-07-01 13:22:20 +02:00
Stephan Seitz
4757636995 Rgenerate doc/tags 2020-06-30 17:22:27 +02:00
Thomas Vigouroux
255d1756b0 highlights(c): highlight ternary as conditional 2020-06-30 08:54:54 +02:00
Stephan Seitz
d724073401 C highlights: Make ? an operator in c highlights 2020-06-30 08:54:54 +02:00
kiyan42
c70a8242eb fix ask install 2020-06-30 08:54:32 +02:00
kiyan42
2bb6374c34 Define multiple query for a language
Allows using another query file for a language, or use a query file
from another language
2020-06-30 08:38:31 +02:00
kiyan42
0611f432aa if/else in defining languages 2020-06-30 08:32:49 +02:00
kiyan42
2a20484a14 fix: remove goto statements 2020-06-30 08:32:49 +02:00
kiyan42
ce119de2e3 update installer with sync and some fixes
- add sync method for installing using `system`
- remove `descriptions` in command configs
- use install(lang) in ensure_installed and make it compatible
2020-06-30 08:32:49 +02:00
Stephan Seitz
2b6b1e3e61 Java highlights: Add operators ":" "?" 2020-06-30 08:32:19 +02:00
Stephan Seitz
fa7a270da1 Java highlights: Add parameter highlight for single-parameter lambdas 2020-06-30 08:32:19 +02:00
Steven Sojka
d73500eaa6 refactor(refactor): use higher local apis and some cleanup 2020-06-30 08:21:01 +02:00
Steven Sojka
6f8e4c97a4 feat(refactor): add definition navigation module 2020-06-30 08:21:01 +02:00
Steven Sojka
64838e51c0 feat(refactor): add smart rename module 2020-06-30 08:21:01 +02:00
Steven Sojka
058e8d2296 feat(refactor): highlight usages module 2020-06-30 08:21:01 +02:00
kiyan42
180ad9a1a8 add python async 2020-06-30 08:15:51 +02:00
Chinmay Dalal
65b3a8e6d7 Add method reference operator 2020-06-29 19:58:39 +02:00
kiyan42
7f6f7596da add used_by key to parsers
Enables the use of multiple filetypes for one parser.
2020-06-29 17:18:22 +02:00
Stephan Seitz
a2f0931254 Extend documentation for TSError 2020-06-29 13:50:23 +02:00
Thomas Vigouroux
f4b87d3364 highlights: declare links as defaults 2020-06-29 13:03:11 +02:00
Chinmay Dalal
b184f1cafb
Java highlights: Capture parameters in declaration (#93)
* Capture parameters in declaration

* Refactor (new syntax)

* Fix spaces

* Fix capture (java method parameters)

* Improve java parameter capture

* Fix bracket and whitespace

* Fix java query

* Fix java query

Co-authored-by: Thomas Vigouroux <39092278+vigoux@users.noreply.github.com>

* Add capture for lambda parameters, remove redundant captures, add -> operator

* Previous commit wasn't saved properly

* Fix formatting

* Changes suggested in PR

https://github.com/nvim-treesitter/nvim-treesitter/pull/93#pullrequestreview-435630553

* Add bitwise operators

* Re-add builtin operators

* remove left shift, add ^=

* Add &= and |=

* remove @variable

* Remove duplicate

Co-authored-by: Thomas Vigouroux <39092278+vigoux@users.noreply.github.com>
2020-06-29 10:48:13 +02:00
Stephan Seitz
54438439e6 C highlights: Add highlight for #elif 2020-06-28 12:15:09 +02:00
Stephan Seitz
c27d35adc5 Fix typo in documentation: labe: -> label: 2020-06-28 12:11:22 +02:00
Stephan Seitz
b0f65cfce4
Merge pull request #102 from vigoux/fix-94
Separate queries with newlines
2020-06-27 21:04:17 +02:00
Stephan Seitz
aa4746c722
Merge pull request #115 from kyazdani42/doc/update-install-doc
update docs for TSInstall
2020-06-27 20:31:16 +02:00
kiyan42
ddb41c36e8 update docs for TSInstall 2020-06-27 12:43:19 +02:00
Thomas Vigouroux
282e18edd1 highlight: use custom highlight groups 2020-06-26 20:56:19 +02:00