Commit graph

120 commits

Author SHA1 Message Date
Steven Sojka
e821349661 add js textobject queries 2020-07-22 23:41:57 +02:00
Stephan Seitz
5d696053e5 Fix #198: prefer method highlighting over attribute 2020-07-22 17:30:48 +02:00
Stephan Seitz
b893592398 Python highlights: add lambda parameters 2020-07-22 17:30:48 +02:00
Steven Sojka
39f3abdf7b
Merge pull request #209 from steelsojka/master
add rest_parameters as definition in javascript
2020-07-22 08:40:45 -05:00
Steven Sojka
6157981113 add rest_parameters as definition in javascript 2020-07-22 07:04:06 -05:00
winwisely268
954b8c718f fixes golang method highlights (overwritten by parameter in the ordering) 2020-07-22 11:28:57 +02:00
Steve Vermeulen
23a16ab605 Added some more fixes to c# highlighting 2020-07-20 23:19:18 +02:00
Steve Vermeulen
d22e0dd865 Few more minor fixes to c# highlighting to cover other cases of types being used 2020-07-20 23:19:18 +02:00
Steve Vermeulen
e6fe7cdab0 Fixed to use @float instead of just @number 2020-07-20 23:19:18 +02:00
Steve Vermeulen
2391930b70 Commenting out the attempt to highlight method calls for now 2020-07-20 23:19:18 +02:00
Steve Vermeulen
e6300a045a C# highlighting - Fixed to highlight method calls, and changed break to be conditional instead of a repeat 2020-07-20 23:19:18 +02:00
Steve Vermeulen
870825e0e8 Added more highlight groups to C# file 2020-07-20 23:19:18 +02:00
Steve Vermeulen
4d71e1455c Added first attempt at highlighting and text objects for csharp 2020-07-20 23:19:18 +02:00
Stephan Seitz
64ebd4128e C highlights: Add operator "%" 2020-07-20 09:00:07 +02:00
Stephan Seitz
496b175d05 C++ locals: add variadic as @definition.var 2020-07-20 09:00:07 +02:00
Stephan Seitz
95d3ce23c6 C++ highlights: Add decltype keyword 2020-07-20 09:00:07 +02:00
Stephan Seitz
58d52ea62d C++ highlights: Highlight variadic parameters 2020-07-20 09:00:07 +02:00
Stephan Seitz
969edeeced Python highlights: highlight functions with self as methods (#198)
Also highlight __init__/__new__ as constructor
2020-07-20 08:57:12 +02:00
Stephan Seitz
58c6d2a73f Attach kind of reference to query result instead of using subfields
This makes smart_rename work also for types out of the box and we don't
need to search for the path of actual node.
2020-07-20 08:55:53 +02:00
TravonteD
45a1c3998d bash: add locals.scm for use with definition highlighting 2020-07-19 22:16:00 +02:00
winwisely268
59c084b5d8 go loop and func literal, rust textobject support 2020-07-17 20:44:43 +02:00
Steven Sojka
ac14bad7a8 fix(highlights): add array strings 2020-07-17 16:09:24 +02:00
TravonteD
a166d44c8a fix: fix references and definitions
The highlighting when highlighting references and definitions in ruby
were off. This corrects that by assigning them to their correct properties.
2020-07-16 20:26:25 +02:00
winwisely268
ee4cd7b0fd added textobject support for golang 2020-07-16 11:09:33 +02:00
Thomas Vigouroux
85d2f9ee93 highlights: some fixes
Add `goto` keyword for C.
Fix typo for lua.
2020-07-16 10:49:49 +02:00
Stephan Seitz
a382e28c95 Python textobjects: Include @decorators and improve @conditional.inner 2020-07-15 23:16:13 +02:00
Stephan Seitz
b480d25155 feat(textobjects): Add start to include preceding things like documentation 2020-07-15 20:12:52 +02:00
Stephan Seitz
5e83307a43 Add C/C++ textobjects 2020-07-14 22:34:43 +02:00
Stephan Seitz
d685d82682 Add Python textobjects 2020-07-14 22:34:43 +02:00
Stephan Seitz
69cabc69be Add textobjects module 2020-07-14 22:34:43 +02:00
Stephan Seitz
faa413287c Cpp locals: Fix syntax 2020-07-13 23:29:15 +02:00
Stephan Seitz
a027ffbe82 Add rust locals.scm 2020-07-13 22:25:33 +02:00
Stephan Seitz
f803c74ebc C/C++ highlights: Small improvements for type definitions 2020-07-13 21:29:49 +02:00
Thomas Vigouroux
7bb0d7548d highlight(c): fix booleans and types 2020-07-09 14:48:39 +02:00
Stephan Seitz
a5fb463309 Python locals: with_statement can define variables 2020-07-09 14:38:08 +02:00
Stephan Seitz
c361d65113 Python highlights: Surround type subscript query with (type ...) 2020-07-09 10:00:41 +02:00
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
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
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
Stephan Seitz
61803eb523 Java highlights: Add binary integer literals 2020-07-01 13:22:46 +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