Commit graph

421 commits

Author SHA1 Message Date
Cédric Barreteau
69d5dec0ce Add indents queries for ledger 2021-01-31 20:10:49 +01:00
Cédric Barreteau
459173e5c7 Add ledger parser, folds and highlights queries 2021-01-31 10:44:45 +01:00
Stephan Seitz
f5c41338aa folds(teal): remove record_declaration from folds
See: c647346911
2021-01-30 21:13:14 +01:00
Stephan Seitz
9eaf1840b3 highlights(cpp): fix constructor call highlighting
Address #883
2021-01-29 17:01:23 +01:00
Thomas Vigouroux
12181e236e fix(lua): correctly handle do_statement in locals 2021-01-27 10:21:37 +01:00
Thomas Vigouroux
b8a7f0ea38 fix(lua): correctly highlight do_statement 2021-01-27 10:21:37 +01:00
Steven Sojka
db033f7239 feat(javascript): move shorthand prop to property 2021-01-26 15:00:35 +01:00
Jeffrey Chupp
76d4a2a0c4 Highlight ruby symbols as @property
Distinguish from @constant. Closes #874
2021-01-25 21:39:29 +01:00
Santos Gallegos
00ad11eb2f C: add goto to locals 2021-01-22 20:19:43 +01:00
elianiva
f84c93c484 fix: added missing enum indent for typescript 2021-01-21 18:17:54 +01:00
Stephan Seitz
99ecb46592 Ruby highlights: symbol -> simple_symbol, hash_key_symbol, delimited_symbol
Account for https://github.com/tree-sitter/tree-sitter-ruby/pull/152
2021-01-21 12:40:45 +01:00
Cédric Barreteau
74b84a66d7 Use function keyword highlight group for Rust's fn 2021-01-20 20:26:35 +01:00
elianiva
107d8b93c1 fix: js indent for object inside arguments 2021-01-20 19:01:33 +01:00
Lewis Russell
362204f85c lua: Add more indent nodes 2021-01-20 10:36:11 +01:00
elianiva
0ebd51c2d8 fix: dedent golang case keyword 2021-01-20 07:20:20 +01:00
elianiva
f132021d31 feat: add missing golang indent queries 2021-01-15 08:07:36 +01:00
elianiva
9184cf3953 feat: added more indent queries 2021-01-14 14:43:04 +01:00
Jędrzej Boczar
e4f8e4147c indent: add Python @ignore queries 2021-01-14 13:54:43 +01:00
Jędrzej Boczar
e6b8c5e680 indent: add Python @return queries 2021-01-14 13:54:43 +01:00
Brian Shu
39968ca258 added query enhancements
added toml

added alternation
2021-01-12 07:21:11 +01:00
Stephan Seitz
00ea65199e C++ highlights: Fix destructor highlighting
Field is not "name"
2021-01-08 20:19:18 +01:00
Steven Sojka
2e8621ff1a
feat(js): add regex injections (#834) 2021-01-07 09:04:43 -06:00
Stephan Seitz
b441f257a4 Python highlights: update definition of decorator 2021-01-07 08:52:41 +01:00
Stephan Seitz
1cf7a1ddc9 Python locals: Add new node with_clause 2021-01-07 08:52:41 +01:00
Brian Shu
005a3ca7f1 started branch 2021-01-07 01:31:39 +01:00
Thomas Vigouroux
632a9f1e3c fix(c highlights): add missing operators 2021-01-06 10:48:35 -05:00
Stephan Seitz
40588da97c Remove usages of @embedded in highlights 2021-01-06 09:12:32 -05:00
Stephan Seitz
091dff2ac6 html highlights: add "<!" to tag.delimiters 2021-01-05 21:43:41 -05:00
BonaBeavis
a0f03ec333 Add turtle 2021-01-05 16:52:49 +01:00
Corey Williamson
32085370b1 Update teal syntax for 0.10 2021-01-05 16:52:17 +01:00
kiyan42
f2c219cddc indent fixes 2021-01-04 17:42:19 +01:00
Santos Gallegos
3dbbc2dc7d Query: add string.escape
Needs https://github.com/nvim-treesitter/tree-sitter-query/pull/5
2021-01-04 09:29:10 -05:00
elianiva
842077acf7 feat: added more fold queries 2021-01-04 11:51:23 +01:00
Santos Gallegos
3d4662e797 Rust: highlight brackets 2021-01-04 08:22:54 +01:00
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