Commit graph

25 commits

Author SHA1 Message Date
Lewis Russell
37398c7d68 feat(spell): support more languages 2022-09-26 13:47:12 +01:00
phynalle
54de8afbed fix(zig): Do not indent on newline after block 2022-08-08 14:07:30 -07:00
lfenzo
c784720917 Split func/method definition from calls in several programming language queries 2022-08-03 12:05:30 -07:00
maxxnino
50314758ee zig: work around for hang neovim 2021-11-28 00:25:25 +01:00
maxxnino
ff2897e5b7 zig: highlight zig format, type and function 2021-11-23 16:46:27 +01:00
maxxnino
47a9e6dda9 Highlight zig add missing AssignOp 2021-10-21 20:23:01 +02:00
maxxnino
f76737ee33 Zig queries: highlight, fold and indent
* fold for if/while/for
 * highlight "_" for ignore variable
 * highlight "c" for PtrTypeStart
 * highlight "?" for optional type
 * remove duplicate query node in indent
2021-09-20 11:46:24 +02:00
maxxnino
cbc42914bf highlight(zig) highlight all caps is a constant
* in some context, like translate c macro
 * which is use all CAPS for define constant
2021-08-24 08:35:15 +02:00
maxxnino
2f73d7c0a8 highlight(zig): rework query
* improve query performance 120ms -> 6ms
 * correct highlight for field, type and function
 * add highlight for escape/format sequence in string
2021-08-23 08:15:07 +02:00
maxxnino
2dd36fa585
highlights(zig): label, switch item, operator, punctuation, field property (#1685)
Co-authored-by: maxxnino <idonthaveemail@dontknow.com>
2021-08-12 23:36:01 -05:00
maxxnino
53160520e2 Update new query and parser for zig 2021-08-11 08:16:16 +02:00
maxxnino
d5116feefd highlights(zig): function return type, var decl type 2021-08-04 11:07:59 +02:00
maxxnino
cb5059e68f highlights(zig): highlight enum,union,error and custom number type
* highlight enum field as a constant
 * highlight cImport and constructor
 * highlight else_switch

enum constant
2021-08-04 11:07:59 +02:00
Stephan Seitz
6d18b93ce7 highlights(zig): highlight true,false 2021-07-08 23:37:00 +02:00
Stephan Seitz
70f739c337 highlights(zig): highlight unreachable 2021-07-05 12:37:21 +02:00
antonk52
90f15d9bf7 feat(keywords) merge return and yield into keyword.return group 2021-07-04 21:49:17 +02:00
antonk52
bd9095e969 feat(keywords) add keyword.return & keyword.yield 2021-07-04 21:49:17 +02:00
Stephan Seitz
45cb7ef290 highlights(zig): use @string.escape for escape sequences 2021-07-04 21:17:48 +02:00
Gregory Anders
a7dac748ba Update zig highlights
Highlight the built-in `@import` function with the TSInclude highlight
group. Also highlight character literals using TSCharacter instead of
TSNumber.
2021-06-10 07:37:34 +02:00
Santos Gallegos
67f0857015 Revert "Comment: use @combined to create just one tree per buffer (#1252)"
This reverts commit 4a7a713c52.
2021-05-07 16:51:57 +02:00
Santos Gallegos
4a7a713c52
Comment: use @combined to create just one tree per buffer (#1252)
* Comment: use `@combined` to create just one tree per buffer

There is no need to create a tree per line/block for comments.
Should fix https://github.com/nvim-treesitter/nvim-treesitter/issues/1251

* Add injections for scss

* Fix jsonc

* Combine jsdoc
2021-04-28 07:19:07 -05:00
Himujjal
0b2ec9d266 improved zig grammar and queries 2021-04-02 03:29:21 +02:00
Himujjal
83bfcde7c2 fixed some errors 2021-04-02 03:29:21 +02:00
Stephan Seitz
4821bde80a Import highlights.scm from tree-sitter-zig 2021-03-30 22:27:50 +02:00
Himujjal
597ec69378 Added Zig grammar 2021-03-23 12:36:34 +01:00