Commit graph

1915 commits

Author SHA1 Message Date
pseudometa
e040eda997
feat(comment): Add some common comment tags (#4909)
see also: https://github.com/stsewd/tree-sitter-comment/issues/22
2023-06-09 10:14:08 +02:00
Amaan Qureshi
2c59e0ff3d refactor(ecma): triple dot should be an operator 2023-06-09 01:58:28 +09:00
Amaan Qureshi
99606fdb71 feat(typescript): update highlights 2023-06-09 01:58:28 +09:00
Hoang Nguyen
71bb1da621
feat(jsonnet): add "for" & "function", update operator highlights
`expr` -> `operator` doesn't exist in the node tree anymore after
505f5bd900
2023-06-08 10:13:26 -04:00
Munif Tanjim
a954f789aa
feat(lua): update highlights query for functions (#4919) 2023-06-08 00:12:54 +02:00
Amaan Qureshi
46ddea9dec
fix(dart): update indents from upstream (#4924) 2023-06-07 20:10:54 +02:00
Domas Poliakas
ab3bf7d956
fix(scala): add block_comment 2023-06-06 14:36:09 +00:00
Frank Bearoff
1b5a7334bb
feat(bash): highlight until as @repeat 2023-06-05 12:32:53 -04:00
Christian Clason
a034c7aa25
fix(highlights): lower priority for codeblocks with injections (#4905) 2023-06-05 14:09:44 +02:00
Pham Huy Hoang
9ec2a6bbda
tests: fix failed tests (#4901)
fix failed tests for tiger, t32 and wgsl
2023-06-05 09:52:36 +09:00
Pham Huy Hoang
1281601cb4
feat: add indents for annotation defs (#4828)
- Add indent for `@interface` and `@Annotation(...)`
- Add notes for indent queries
2023-06-04 13:28:41 +09:00
Will Ruggiano
79aedc9675
feat(prisma): highlight views 2023-06-04 00:05:57 -04:00
Ananda Umamil
bee003b880
feat(ecma): convert eligible @keyword.operators 2023-06-04 00:04:40 -04:00
Ananda Umamil
56022e0b05
feat(typescript): highlight is and : in type predicate 2023-06-04 00:04:00 -04:00
Santos Gallegos
48f4f3ead1
feat(comment): add support for URIs
https and https links are recognized now
ref https://github.com/stsewd/tree-sitter-comment/pull/21
2023-06-04 00:03:09 -04:00
Alex Manning
f84de0d6cd
fix(gleam): minor indent fixes 2023-06-04 10:39:20 +09:00
Tyler Miller
5ac8cf8ee5 fix(make/highlights): add define and operators 2023-06-03 23:54:28 +03:00
Chris Kipp
2cbe8a4296
highlights(scala): add support for using directives (#4893)
This accounts for the updates in https://github.com/tree-sitter/tree-sitter-scala/pull/273.
2023-06-02 22:13:30 +09:00
Frank
cb6d94ef7b add "select" to @repeat highlight group 2023-06-02 01:45:12 -07:00
Pieter Goetschalckx
a6063b22c9
highlights(ocaml): update operators (#4878)
* Update ocaml highlights

* Don't capture operator twice
2023-06-01 10:28:00 +09:00
Pau Ruiz Safont
06aa932bb8
chore: update ocamllex
* Update parsers: ocamllex

Update its highlight to make it compatible with the new parser

* highlights(ocamllex): follow newest changes from upstream

The upstream grammar added highlights in the latest version, change our
highlight so they reflect better the intention of the grammar's author
2023-05-30 00:13:17 -04:00
Amaan Qureshi
6de5ceba03
fix(go): properly highlight chan/map (#4875) 2023-05-30 00:09:37 -04:00
Amaan Qureshi
754b509f26
chore: update Gleam 2023-05-29 11:13:36 -04:00
Jake Stanger
dc38ff85d9
feat: add language support for corn (#4864)
Adds queries and a parser mapping for the [Corn](https://github.com/jakestanger/corn)
configuration language.
2023-05-29 17:26:28 +09:00
Noah
ab3fb2a285
refactor: update Clojure queries
Instead of relying on regex for matching (which matches custom symbols),
explicitly list each of the variations in `@variable.builtin, `@conditional`,
`@function.macro`.

Add `@variable.builtin` for the builtin repl variables `*1`, `*2`, `*3`, and
`*e`, which are occasionally used in tests and comments.

Move `ex-info`, `ex-cause`, `ex-data`, and `ex-message` to `@functions.builtin`.

Add missing `clojure.core` functions to `@functions.builtin` at the bottom to
minimize diff. Includes functions from 1.12-alpha2 release as well.
2023-05-26 18:15:22 -04:00
Yuki Ito
ec97c5ec72
fear(go): add clear to @function.builtin 2023-05-26 09:51:51 -04:00
Pham Huy Hoang
5781c94703
feat: markdown indents (#4862) 2023-05-26 08:08:06 +00:00
Matthias Q
dae928b3bb
indents(sql): initial support (#4857)
* indents(sql): initial support

* indents(sql): fix queries and lua style
2023-05-25 05:53:14 +00:00
Matthias Queitsch
b8ddb83d60 highlights(sql): add keyword overwrite 2023-05-23 21:08:50 -04:00
mohsen
f2778bd1a2 highlights(go): add some highlights
- added missing operators
- added iota constant
- added comparable type
- edited  go keyword types
2023-05-21 20:04:40 +02:00
Christian Clason
741260618d highlights(query): prefer lua-match 2023-05-21 19:22:05 +02:00
fab4100
8e817bebf9
feat: add Intel Implicit SPMD Program Compiler (ISPC)
* Add ISPC parser config

* Add ISPC queries

* Update queries/ispc/injections.scm

Co-authored-by: Amaan Qureshi <amaanq12@gmail.com>

---------

Co-authored-by: Fabian Wermelinger <fab4100@posteo.net>
Co-authored-by: Amaan Qureshi <amaanq12@gmail.com>
2023-05-20 21:52:54 -04:00
fab4100
8e59b4919d
fear(cpp): highlight brackets in template_parameter_list 2023-05-20 14:41:54 -04:00
Amaan Qureshi
cbfb03bba5 chore(objc): update folds 2023-05-20 03:52:08 -04:00
Amaan Qureshi
dad1b7cd66 feat: add Objective-C 2023-05-19 12:24:38 -04:00
Ananda Umamil
a02a06a068 highlights(typescript): : in switch statement 2023-05-18 21:34:42 -04:00
Emilia Simmons
58da7fe93e allow no spaces for extend/inherit comments 2023-05-18 20:01:00 -04:00
Emilia Simmons
0058058386 add multiple ; for highlighting 2023-05-18 20:01:00 -04:00
Emilia Simmons
865483f8d1 fix(query): allow multiline modeline (inherits/extends) 2023-05-18 20:01:00 -04:00
Pham Huy Hoang
1aea2eee29
refactor: add notes for swift
Also add enum_class_body
2023-05-19 00:57:18 +09:00
Christoph Sax
16cce8df58
feat(t32): add indent rules (#4782) 2023-05-18 16:40:13 +09:00
Matthias Queitsch
27079f7060 highlights(sql): refactor count to generic invocation 2023-05-15 20:00:22 -04:00
Colin Kennedy
4c35c0b75d Added USD as a language + some queries
Added USD highlight unittests

Added USD indentation

Added USD indents.scm file

Added USD indent rules

Simplified USD highlight groups

Added explicit highlight groups

Added newline

Removed after/ftdetect/usda.lua

usd/indents.scm - Added inline comments explaining the nodes

Fixed USD highlight group unittests

Added indentation unittests

Simplified USD `@identifier` highlighting

Added USD documentation highlight group tests

Simplified USD highlight groups

Moved USD `@identifier` and `@namespace` highlights into one place

Removed and simplified tests/query/highlights/usd

Simplified tests/query/highlights/usd more

Removed trailing newline

Combined USD test files

Added `set filetype=usd` to minimal_init.lua
2023-05-15 09:28:11 +02:00
Christian Clason
680807fa6a highlights(markup): distinguish heading level in queries
also add a few queries from Helix and remove controversial
code block conceal in Markdown
2023-05-13 16:50:32 +02:00
Amaan Qureshi
40d373adcd feat: add Odin 2023-05-13 02:49:07 -04:00
Amaan Qureshi
a67a4ab642 feat(func): update highlights 2023-05-13 02:11:04 -04:00
Zheng PiaoDan
dba8c8e781
fix(nickel): wrong indent on line after top level comment (#4792)
* fix(nickel): wrong indent on line after top level comment

Previous incorrect indentation on line after top level comment:

```
# no indent after this comment
  {
  another = 1
}
```

Expected result:

```
# no indent after this comment
{
  another = 1
}
````
2023-05-13 15:03:05 +09:00
Amaan Qureshi
ec0d0ffe51 feat(cpon): update queries 2023-05-13 00:56:40 -04:00
Zheng PiaoDan
32d0baae44
feat: add indents.scm for nickel (#4790) 2023-05-13 02:49:39 +09:00
Gregg Jansen van Vüren
39cf5cbcfd
feat(java): add more foldable nodes 2023-05-11 15:27:43 -04:00