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
Stephan Seitz
2d224ac3bf
Fix cpp-highlights: wrong capture name used in regex
2020-06-26 19:37:12 +02:00
Stephan Seitz
75bce1dc93
Python highlights: Reset highlighting in f-string interpolation
...
This solution is preferable to `(identifier) @Normal` since otherwise
everything without highlight will use string-highlighting.
2020-06-26 13:52:59 +02:00
Stephan Seitz
88c8b70560
Python highlights: Add walrus operator
2020-06-26 13:52:59 +02:00
kiyan42
0ed1fbf909
continue installing if not reinstalling one parser
2020-06-25 13:52:29 +02:00
kiyan42
3e4ea3d890
install can take 'all' as parameter
2020-06-25 13:52:29 +02:00
kiyan42
5e91955b6a
add command to install all parsers
2020-06-25 13:52:29 +02:00
Steven Sojka
d04a833e20
fix(locals): compute locals after later tick
2020-06-24 15:38:00 +02:00
Stephan Seitz
dfead6caca
Adapt Python highlights to new query syntax
2020-06-24 10:07:22 +02:00
TravonteD
51a52b85cf
add highlight queries for bash
2020-06-23 16:15:19 +02:00
Thomas Vigouroux
35dfd7e1f4
Update CONTRIBUTING.md
...
This makes it more readable
2020-06-23 14:30:01 +02:00
TravonteD
09c2e6e0a7
Fix the ":" in symbols when used in pairs
...
This fixes the colon not being highlighted when a symbol is represented
in a pair like so:
symbol: true
2020-06-23 09:28:32 +02:00
kiyan42
def8c20dd7
rename and finish ft->lang migration
2020-06-22 13:22:30 +02:00
Kiyan Yazdani
30dbf73113
Merge pull request #98 from theHamsta/disclaimer
...
WIP: Add disclaimer to README.md
2020-06-21 23:42:41 +02:00
Thomas Vigouroux
3000b878fe
fix: separate queries with newlines
2020-06-21 23:06:13 +02:00
Stephan Seitz
895216014b
Add disclaimer to README.md
2020-06-21 21:10:13 +02:00
Kiyan Yazdani
050ea2fd6f
Merge pull request #101 from stsewd/fix-parser-ulr
...
Fix bash parser url
2020-06-21 21:08:47 +02:00
Santos Gallegos
171c7e4bcf
Fix bash parser url
...
Not sure if this was on purpose or if it was a mistake
2020-06-21 13:47:56 -05:00
Thomas Vigouroux
ec903ac99d
fix(statusline): don't call if no parser
2020-06-21 19:50:24 +02:00
Thomas Vigouroux
b84fde9718
Merge pull request #96 from theHamsta/python-__dunder__
...
Add highlighting of dunder identifiers (e.g. __all__, __add__) to Python highlights
2020-06-21 19:46:23 +02:00
Kiyan Yazdani
2c81ec3918
Merge pull request #90 from kyazdani42/fix/parser-names-as-filetypes
...
refacto/fix: filetype / parser name distinction
2020-06-21 17:32:37 +02:00
Stephan Seitz
a85cf1a47c
Add highlighting of dunder identifiers (e.g. __all__, __add__) to Python highlights
2020-06-21 17:00:17 +02:00
Stephan Seitz
969d496f3f
Merge pull request #72 from doubleloop/python
...
Updated python highlights
2020-06-21 16:22:53 +02:00
Thomas Vigouroux
7a347c3394
Merge pull request #91 from TravonteD/sibling-refactor
...
Refactor: utilize new consolidated syntax
2020-06-21 10:31:40 +02:00
Jakub Łuczyński
0b4d4b4140
Updated python highlights
...
* allow for digits in constant names
* removed redundant/conflicting rules
* added missing hlmap
* fixed escape_sequence
* more explicit @constructor assignment
* added rules for function decoration identifiers
2020-06-21 00:11:58 +02:00
TravonteD
0f836e0602
refactor: use newly introduced consolidated syntax
2020-06-20 09:03:39 -04:00
kiyan42
df17a48c85
refactor: parser list and lang->ft/ft->lang
...
- move parser list in `parsers.lua`
- most `ft` variable where changed to `lang`, `ft` is only used on
autocmd binding, and lang is used for everything else. Functions have
been defined to make the switch between `ft` and `lang`
2020-06-20 12:31:52 +02:00
kiyan42
ad636f4f53
fix: declare parse names as their appropriate filetype and change clone url
2020-06-19 16:12:57 +02:00