Stephan Seitz
d9105e00a6
Python highlights: Add regex injections: re.match(r"...")
2021-01-03 19:05:38 +01:00
Stephan Seitz
43381c1321
Regex highlights: Add constant highlight for class_character
2021-01-03 19:05:38 +01:00
Stephan Seitz
e8fa1c2c84
Regex highlights: no escape highlighting for escaped special characters
2021-01-03 19:05:38 +01:00
Stephan Seitz
91220e5f4b
Regex highlighting: add "?" operator
2021-01-03 19:05:38 +01:00
Stephan Seitz
14d004773f
Julia highlights: Add markdown injection for docstrings
2021-01-03 19:05:02 +01:00
Stephan Seitz
dcf19d226b
Add Julia highlights (coauthor: @mroavi)
2021-01-03 19:05:02 +01:00
Santos Gallegos
6aaf240d0c
RST: update injection queries
...
Finally, highlight for code blocks
2021-01-02 17:19:08 -05:00
Santos Gallegos
c74be54deb
Python (folds): allow to fold strings
...
Mostly useful for folding docstrings
2021-01-02 04:21:47 +01:00
Santos Gallegos
5ffcd75ea6
RST: update parser and queries
...
- The directive type does not longer includes `::`.
- The content of the directives is not longer interpreted as rst,
but it uses language injection for it.
- Fix a query to allow to capture targets without link.
- Reset the content of the math role so it can be highlighted by the
injection instead.
Problems I found:
- Capturing the same node with @language and @content will raise an
error.
```
Error detected while processing FileType Autocommands for "*":
E5108: Error executing lua /usr/share/nvim/runtime/lua/vim/treesitter/languagetree.lua:331: table index is nil
```
Harcoding the language works, Using the offset predicate doesn't work
either `(#offset! 0 0 1 0)` nor `(#offset! 0 0 0 5)`
- Generating the grammar using `tree-sitter-cli@0.17.x` breaks
nvim-treesitter, `@0.16.9` works.
2021-01-01 09:49:14 -05:00
Simon Hauser
748ac8f781
Add c injection for ffi.cdef to lua
2021-01-01 11:45:45 +01:00
TJ DeVries
5236768c33
add gdscript
2020-12-31 14:27:43 +01:00
BonaBeavis
e934c5508a
Add SPARQL
...
Signed-off-by: BonaBeavis <gordian.dziwis@gmail.com>
2020-12-30 17:51:44 +01:00
David Hotham
cafe733e23
wildcards to capture keys
2020-12-25 15:56:49 +01:00
David Hotham
dc0432aa54
simplify treatement of escape sequences
2020-12-25 15:56:49 +01:00
David Hotham
18fd5709b7
remove plus from list of punctuation
2020-12-25 15:56:49 +01:00
David Hotham
4addec1361
first draft of YAML highlighting
2020-12-25 15:56:49 +01:00
Mike
98fba24acf
feat: Add more bash queries
...
Add missing fold queries
Add "function" to keywords highlights
2020-12-25 15:56:27 +01:00
David Hotham
35dec1ceeb
remove duplication of query for number
2020-12-25 15:56:06 +01:00
David Hotham
0c19049023
match test for regex
2020-12-25 15:56:06 +01:00
David Hotham
026314f2a9
fixes to bash highlighting
2020-12-25 15:56:06 +01:00
Jędrzej Boczar
ac42192e19
Improve python/indents.scm
2020-12-21 22:58:17 +01:00
delphinus
0fc8ea0035
Add lacked Javascript operators
2020-12-21 08:55:04 +01:00
Tormod Alf Try Tufteland
a8438b8bbf
stricter regex kotlin constants
2020-12-20 22:59:40 +01:00
Santos Gallegos
1ad1f3b35a
Python: fix self highlighing
2020-12-18 20:33:04 +01:00
Kassio Borges
a5f2970d7a
Add more ruby built-in constants
2020-12-18 17:10:14 +01:00
Evan
01baa52899
Update indents.scm
2020-12-18 16:42:05 +01:00
Evan
c200de65aa
Create indents.scm for python
2020-12-18 16:42:05 +01:00
Corey Williamson
cfc68f929c
Update for teal-0.9
2020-12-17 00:44:01 +01:00
El Piloto
775021cbd5
Remove duplicate capture for function_definition
2020-12-16 11:44:39 +01:00
El Piloto
6182c2b0a6
Capture anonymous functions assigned to variables
...
Closes https://github.com/nvim-treesitter/nvim-treesitter/issues/709
2020-12-16 11:44:39 +01:00
Stephan Seitz
5f20329e96
Ruby highlights: Unify call and method_call (follow tree-sitter-ruby)
2020-12-16 10:08:50 +01:00
Stephan Seitz
b4d91a340e
Bash highlights: reset highlighting in expansion
2020-12-14 07:38:38 +01:00
Dave Lage
ff1c77b206
Javascript unary expression ( #712 )
...
* javascript: Move unary_expression matching.
* javascript: Move unary_expression matching.
* javascript: Update unary to operator
* javascript: Update qnary to be more specific
2020-12-12 14:47:09 -06:00
rockerBOO
9279ff5065
go: Add package_identifier as variable
2020-12-10 23:56:01 +01:00
Tormod Alf Try Tufteland
855df2d0cc
type and identifer defaults. fixed const keyword
2020-12-06 15:08:51 +01:00
Tormod Alf Try Tufteland
e63f81ec0a
@annotation -> @attribute
2020-12-06 15:08:51 +01:00
Tormod Alf Try Tufteland
c071454a18
add more builtin functions
2020-12-06 15:08:51 +01:00
Tormod Alf Try Tufteland
18fadcfd4b
add readme and more correct highlight captures
2020-12-06 15:08:51 +01:00
Tormod Alf Try Tufteland
558d938c2e
move divide to punctiation.special
2020-12-06 15:08:51 +01:00
Tormod Alf Try Tufteland
d90a4621a3
add kotlin parser and highligh-queries
2020-12-06 15:08:51 +01:00
Kassio Borges
b8bbfceca7
Add some ruby exception keywords
2020-12-05 22:49:42 +01:00
Stephan Seitz
c76709fd36
Update Teal queries and parser
2020-12-03 21:13:02 +01:00
Thanabodee Charoenpiriyakij
37da1c0a30
css: add indent support
2020-12-03 14:32:59 +01:00
Stephan Seitz
b3a3403e25
Update Python queries
2020-11-30 11:19:22 +01:00
Stephan Seitz
47fae4eff8
Update teal queries
2020-11-30 11:19:22 +01:00
Bryan Kegley
3f617edd50
graphql: add missing highlights
...
* enum values
* comment
* input parameters
* 'implements' keyword
* include '@' in directive name
* fragment definition and spread
2020-11-30 11:17:44 +01:00
Stephan Seitz
382e09aa56
Fix #724 : Add (initializer_list) to C folds
2020-11-30 11:13:20 +01:00
Luis Carlos Cruz Carballo
7cea298144
graphql: add injection to javascript and add comment query
2020-11-29 20:20:04 +01:00
rockerBOO
299b874d2f
typescript: Use javascript shorthand_property_identifier
2020-11-27 22:20:32 +01:00
rockerBOO
a0b2fab978
javascript: Mark shorthand_property_identifier as variable
2020-11-27 22:20:32 +01:00