Commit graph

1652 commits

Author SHA1 Message Date
Santos Gallegos
1ec36fdcd5
comment(highlights): reduce false positives (#4298)
There are a couple cases where the comment highlights
will match things that aren't necessary a tag.
For example in Rust, when commenting a block that deals with
generics (generics are declared as `T: Type`),
this may be distracting.

So, instead of highlighting all tags, we can restrict
to highlighting the explicit keywords.

Ref https://github.com/stsewd/tree-sitter-comment/issues/14
2023-02-13 09:43:26 +01:00
Omar Zeghouani
ab5cc6414e
chore(fish): update test command highlight query (#4306) 2023-02-13 00:19:48 +02:00
Ananda Umamil
4e26fec074 highlights(php): use lua-match?
Co-authored-by: Stephan Seitz <stephan.seitz@fau.de>
2023-02-12 01:23:19 -08:00
Ananda Umamil
0c6835ce5e highlights(php): remove typedef capture from as 2023-02-12 01:23:19 -08:00
Ananda Umamil
620b947218 highlights(php): fix @constant queries 2023-02-12 01:23:19 -08:00
Ananda Umamil
f83f05798a highlights(php): fix queries related to namespaces 2023-02-12 01:23:19 -08:00
ObserverOfTime
74151445d0 highlights(kotlin): fix function highlights 2023-02-12 01:21:58 -08:00
Vir Chaudhury
d7c12db4c8 astro: add injections for scss 2023-02-11 15:55:56 -08:00
ObserverOfTime
5b71f2674a injections(svelte): add pug injection 2023-02-11 15:40:34 -08:00
Amaan Qureshi
c3a7dd4768 feat: improve KDL queries 2023-02-05 23:08:41 -08:00
Christian Clason
24d5be6e71 feat(markdown): add latex injections
added in https://github.com/MDeiml/tree-sitter-markdown/pull/71
2023-02-05 08:29:45 -08:00
Amaan Qureshi
720f75f988 feat: add RON 2023-02-05 02:21:49 -08:00
ObserverOfTime
bd7b4b6eff feat: add chatito 2023-02-04 04:19:40 -08:00
ObserverOfTime
0e6d4b4172 highlights(ecma): limit constructor highlight 2023-02-03 14:32:28 -08:00
Sergio Alejandro Vargas
4301040bbc feat(julia/highlights): Add as keyword 2023-02-03 14:29:30 -08:00
Amaan Qureshi
98a52ce300 feat: add gosum 2023-02-03 20:38:40 +02:00
Amaan Qureshi
660a070af7 feat: add func 2023-02-02 23:28:46 +02:00
Omer Tuchfeld
69867ffe7e jq/highlights.scm should highlight the elif keyword 2023-02-02 14:40:36 +02:00
Stephan Seitz
f0e083912a highlights(cuda): add __noinline__ 2023-02-01 20:40:39 +02:00
Amaan Qureshi
e00952111e
feat: add smithy (#4245) 2023-01-31 16:14:58 +02:00
Alvaro Muñoz
d335c39bff update tests 2023-01-31 12:23:13 +01:00
Alvaro Muñoz
1c41d6f825 fix(ql): Add moduleMember to indent file 2023-01-31 12:23:13 +01:00
Amaan Qureshi
cbb43a64a3 feat: add elsa 2023-01-30 09:45:17 +02:00
Amaan Qureshi
c610c78576 chore: update thrift queries 2023-01-29 00:52:59 +01:00
Brian Ryall
5812ae26f7 highlights(beancount): update on latest updates 2023-01-28 15:03:55 +01:00
Amaan Qureshi
aad763de6b
feat: add kdl (#4227)
* feat: add kdl

* feat: comment queries

* fix(kdl): comments properly highlighted now

* feat(kdl): folds

* chore: bump revision to feature-complete parser

* fix: folds
2023-01-28 13:59:56 +01:00
Amaan Qureshi
8546502163 fix(capnp): update highlights 2023-01-28 13:33:21 +01:00
Ananda Umamil
cf21f81274 highlights(php): instanceof operand 2023-01-28 11:32:57 +01:00
Ananda Umamil
a422d8508d Use @parameter capture 2023-01-28 01:45:54 +01:00
Ananda Umamil
2ed316ccf4 Apply the suggestion from @Lucario387
Co-authored-by: Lucario387 <hoangtun0810@gmail.com>
2023-01-28 01:45:54 +01:00
Ananda Umamil
fc596733ff highlights(php): declare directives and : 2023-01-28 01:45:54 +01:00
ObserverOfTime
6ae94e0341 highlights(c): extern in linkage specification 2023-01-26 17:39:24 +01:00
ObserverOfTime
de459332e2 feat: add poe_filter 2023-01-25 23:53:04 +02:00
Amaan Qureshi
d9d8f5eba4 feat(capnp, thrift): add folds, bump lockfile 2023-01-23 22:26:16 +01:00
Amaan Qureshi
f826b7af13 refactor(capnp, thrift): improve grammar & queries to stable for the foreseeable future 2023-01-23 22:26:16 +01:00
Sergio A. Vargas
4895c2133f
julia: add if_clause (#4204)
* fix(julia/highlights): Add `if_clause`

* Update Julia lockfile revision
2023-01-23 08:14:30 +00:00
Amaan Qureshi
6cf93175bf
feat: add capnp (#4203) 2023-01-23 10:00:32 +02:00
Amaan Qureshi
1913ce2fd2 feat(thrift): refactor queries for better highlights, fixes bugs where certain ones went past where they should've ended 2023-01-23 08:42:27 +01:00
ObserverOfTime
7bef1d5330 highlights(rst): don't spell check links 2023-01-22 14:11:45 +01:00
Amaan Qureshi
b300d903b0
feat(thrift): use better queries, namely for idents (#4197) 2023-01-22 12:29:50 +02:00
Pham Huy Hoang
e42a077fdf Partially revert json highlight updates 2023-01-22 10:34:19 +02:00
ObserverOfTime
da6dc214dd highlights(json): conceal escaped quote 2023-01-21 23:06:10 +01:00
Pham Huy Hoang
6d4869e59d injections(html): update injection queries 2023-01-21 20:40:42 +01:00
Chris Kipp
a943661be8 refactor(scala): update scala highlights for uppercase identifiers
This is a small change that comes from the discussion we had in
https://github.com/tree-sitter/tree-sitter-scala/discussions/168#discussioncomment-4718624.
The idea here is that we're sort of making an assumption on what an
uppercase identifier is in Scala and more times than not, it's actually
a `@type`. So this changes the `@constant` capture to a `@type` one. You
can find the full context in the linked discussion.
2023-01-21 17:59:30 +01:00
ObserverOfTime
f5f7c7e004 feat: add htmldjango 2023-01-21 17:01:45 +01:00
Amaan Qureshi
08e1adae53
feat: add thrift (#4185) 2023-01-21 14:39:15 +02:00
Stephan Seitz
a722cd1405 folds(ini): add folds.scm 2023-01-21 01:05:57 +01:00
Stephan Seitz
d88c03abbb highlights(ini): add highlights.scm 2023-01-21 01:05:57 +01:00
Matthew Gramigna
622baacdc1
parsers: Add FHIR Shorthand (FSH) (#4052) 2023-01-18 17:58:45 +00:00
Chris Kipp
28aa6ba554
scala: add interpolator query (#4175) 2023-01-18 12:06:32 +01:00