TravonteD
37f9866f66
- #76 update the predicate syntax for ruby and css
2020-06-11 10:38:19 -04:00
Thomas Vigouroux
85645f5720
Merge pull request #69 from theHamsta/go-highlights
...
Go highlights
2020-06-07 13:58:38 +02:00
Stephan Seitz
5a096cb3f1
Add call references for Go
2020-06-07 12:39:58 +02:00
Stephan Seitz
452447694a
Add go locals.scm
2020-06-07 12:39:58 +02:00
Stephan Seitz
04040c61c7
Add highlights.scm for Go
2020-06-07 12:39:58 +02:00
Stephan Seitz
0ad3872fde
html: Highlight (quoted_attribute_value) as @string
2020-06-05 18:21:01 +02:00
Thomas Vigouroux
c934ea694c
Merge pull request #68 from TravonteD/html
...
Add html highlight queries
2020-06-02 21:15:48 +02:00
Thomas Vigouroux
8763a3163f
Merge pull request #67 from TravonteD/css
...
Add css highlight queries
2020-06-02 21:13:43 +02:00
TravonteD
d32d5abb4a
Add html highlight queries
2020-06-02 15:13:36 -04:00
TravonteD
58f5bdbe01
Add css highlight queries
2020-06-02 15:11:35 -04:00
Stephan Seitz
92417aa4ea
Update python locals: list_splat and dictionary_splat define variables as parameters
2020-06-02 21:13:09 +02:00
Stephan Seitz
807d6e11fa
Improve Python highlights
...
- Highlight types in attributes as @type (**Foo**.a)
- Highlight superclasses @type
- Highlight ^[A-Z] as @type
- Highlight isinstance(*, type) as @type
- Highlight default_parameter and keyword_argument as @parameter
- Highlight *args, **kwargs as @parameter
- Highlight -> as @operator
2020-05-28 10:42:45 +02:00
Stephan Seitz
9f2f792bcd
Some improvements to c/locals.scm
...
- Fix function scope (was declaration only without body)
- Use @definition.var like the other local files
- Add translation_unit scope
2020-05-23 22:23:29 +02:00
Stephan Seitz
f6bf56974e
Introduce @include
2020-05-17 21:56:44 +02:00
Stephan Seitz
57424533a7
Add python/highlights.scm from tree-sitter-python
2020-05-17 21:56:44 +02:00
Stephan Seitz
a5c50262d9
Add python locals.scm
2020-05-16 19:32:02 +02:00
Thomas Vigouroux
92aafcf51c
queries: add C queries
...
Also add a missing `field` capture in locals query.
2020-05-16 14:47:17 +02:00
TravonteD
64925f92d9
update ruby highlights and locals to conform the new contribution
...
standards
2020-05-11 11:54:59 -04:00
Thomas Vigouroux
22f73628f6
fix(lua): update queries
2020-05-07 14:03:29 +02:00
TravonteD
79ab9fc6fb
Squashed commit of the following:
...
commit 1b3700b0cd68cb507c64b7243a5bea050379f09c
Author: TravonteD <tman1300@aol.com>
Date: Fri Apr 24 08:44:34 2020 -0400
remove local from the capture groups
commit 62f1a613c7c6f26e3a85f06f322ead28280dc7ca
Author: TravonteD <tman1300@aol.com>
Date: Thu Apr 23 18:43:09 2020 -0400
update captures for identifiers
commit 9966d5a9cd780b2de80e620cee6833fd341028d0
Author: TravonteD <tman1300@aol.com>
Date: Thu Apr 23 18:42:42 2020 -0400
add capture for constants that are recievers of a method call
commit 10f03606710a3a54c8c722e4883b9475c6f9f776
Author: TravonteD <tman1300@aol.com>
Date: Thu Apr 23 17:54:25 2020 -0400
update captures for function definitions and calls
commit 4b350274cb02e1b69ae013fa157bae5c6be9e577
Author: TravonteD <tman1300@aol.com>
Date: Thu Apr 23 17:21:10 2020 -0400
update captures for operators
commit c66d42cd0d56d0a1bbfb1f88ffa7ff6ae8b6c2df
Author: TravonteD <tman1300@aol.com>
Date: Thu Apr 23 17:10:13 2020 -0400
update captures for literals
commit a9c097fe03f7294fdaede760f2c016cf6c960a45
Author: TravonteD <tman1300@aol.com>
Date: Thu Apr 23 15:54:47 2020 -0400
add highlights and locals from treesitter-ruby
2020-04-24 08:48:18 -04:00
Thomas Vigouroux
f6f402e870
locals(lua): incorrect query for field functions
2020-04-23 10:29:41 +02:00
Thomas Vigouroux
7cff1aabaa
highlight(lua): highlight local functions
2020-04-23 10:28:26 +02:00
Thomas Vigouroux
c4862c656e
highlight(lua): add more operators
2020-04-22 22:02:42 +02:00
Thomas Vigouroux
d05728e155
feat: syntax highlighting
2020-04-22 22:02:42 +02:00
Thomas Vigouroux
b706c4e8ed
feat: first version of locals
...
Locals will be the main interface to treesitter, through some functions:
get_definitions(bufnr) : returns all the definitions in bufnr
get_scopes(bufnr): returns all definitions in bufnr
get_references(bufnr): returns all references in bufnr
2020-04-19 17:28:52 +02:00
Thomas Vigouroux
00f871ab51
feat: add an example locals query
...
This will be the guide for the implementation of locals extraction,
which is treesitters name of definition/scope.
2020-04-18 19:21:01 +02:00