Commit graph

192 commits

Author SHA1 Message Date
ganhaque
ea3a37a975
fix(wgsl): indent call expression params (#7309) 2024-11-06 10:09:14 -08:00
Riley Bruins
0d3426a2e8 fix(wgsl): indent first parameter of function definition 2024-11-06 09:24:39 +01:00
Abhishek Singh
604aa5a7c8
feat(nu): add parser and queries (#7267) 2024-11-05 15:25:42 +01:00
Riley Bruins
8fadb18430 feat: sway programming language 2024-11-04 08:36:41 +01:00
Caleb White
ec8776ed9e
feat(php): php 8.4 support (#6741)
* chore(php): update maintainers

* feat(php): update php rules, highlight imported functions/consts

* feat(php): indent inside property hooks

* chore: update php and php_only revision
2024-08-18 12:30:04 +02:00
Riley Bruins
558c7ad7bf fix(lua): proper indent after multiline string arg 2024-08-05 10:07:41 +02:00
Riley Bruins
09bad640e4 fix(query): proper indentation after quantifiers 2024-08-02 22:45:14 +09:00
Oliver Thomas
65310b64ee fix: prevent double indent from pipes 2024-07-31 11:23:46 +02:00
Riley Bruins
f97e0de005
feat: add rescript parser and queries (#6671) 2024-07-27 17:34:30 +02:00
Christian Clason
f649c2ff75 fix(php): correct line endings 2024-07-17 15:45:25 +02:00
Dennis van den Berg
0d5e1214a5 feat: add indentation queries for angular 2024-07-17 09:52:47 +09:00
Riley Bruins
4836c1df65 fix(lua): indent functions before they are closed
Fixes #6786
2024-07-16 13:17:36 +02:00
Grace Petryk
f16a775830
feat(python): Improved python indentation (#6859)
* feat: improve python indentation

* use lua-match

* revert concatenated_string changes, handle function def hanging indents

* lint

* add delimiters to param query

* add test cases
2024-07-16 20:13:41 +09:00
再生花
53c79ddc28
fix(php): do not indent after class/enum decl 2024-07-09 10:12:29 +09:00
Riley Bruins
55a13862cd feat(nix): indentation queries 2024-07-05 15:13:25 +02:00
Riley Bruins
fa611f612a
fix(ecma): indent single-line if statements (#6846)
Fixes #5898.
2024-07-04 11:13:16 +09:00
Phạm Huy Hoàng
3e535e826d fix(r): adapt indent queries
- Anchor parameter query. There's no need for multiple indent.align
  captures
- Narrow down binary_operator indent.begin. From tree-sitter-r corpus
  and highlight tests, this seems to be appropriate.
2024-06-28 18:13:12 +02:00
Christian Clason
5373c90c55 feat(r)!: update parser and queries 2024-06-27 15:31:41 +02:00
Christian Clason
3d268f9db4 fix: adapt to Nvim 0.11 deprecations 2024-05-17 17:16:44 +02:00
ganhaque
1b050206e4
fix(rust): indentation in multi-line tuple pattern (#6402)
* fix(rust): indentation in multi-line tuple pattern

* test(indent): rust - add test for tuple pattern indent
2024-04-04 15:12:31 +00:00
Caleb White
143ca5ce17
feat(php): improve indents in return statements & chained methods 2024-03-16 20:50:13 -04:00
Luckas
904f373fc4
feat(dot): add indents queries
* feat(dot): add indents queries

* add: tests

* fix: test
2024-03-15 09:18:33 +09:00
再生花
e73c775aa9 feat(swift): add init/deinit indents
Signed-off-by: Phạm Huy Hoàng <hoangtun0810@gmail.com>
2024-03-13 11:09:42 +08:00
Phạm Huy Hoàng
63ca90eaa3 feat(swift): add will/didSet indent
Fixes CI error in PR.6237
2024-03-04 00:05:45 +09:00
Riley Bruins
455f6586ba
feat(query): indents that reflect the formatter (#6154)
* feat(query): indents that reflect the formatter

Indentation queries that reflect the query formatter. Only applicable if `lispoptions=expr:1`
2024-02-21 18:47:09 +09:00
Riley Bruins
d96bf9d522
fix(python): better try-except indentation (#6097) 2024-02-15 00:39:59 +07:00
Phạm Huy Hoàng
1c72e797ba fix(yuck): comment out start-of-line parens 2024-02-13 17:58:36 +01:00
Jędrzej Boczar
6548bb64c1 feat(meson): add indents.scm 2024-01-20 10:48:56 +01:00
Jędrzej Boczar
d496c5e08e
fix(cpp): incorrect indent of class with opening { on new line (#5811) 2023-12-22 05:49:13 +09:00
Ronan Arraes Jardim Chagas
d2fe87062d Add more tests for assignments 2023-10-29 01:37:31 +02:00
Ronan Arraes Jardim Chagas
a741b5dd0d Improve curly expression alignment 2023-10-29 01:37:31 +02:00
Ronan Arraes Jardim Chagas
3d6c0af936 Fix tests 2023-10-29 01:37:31 +02:00
Ronan Arraes Jardim Chagas
fc3bfd8f89 Add initial tests for Julia language indentation 2023-10-29 01:37:31 +02:00
Carlos Afonso
bf87a16712 fix(php): fix indentation for in between braces 2023-10-15 14:34:32 -04:00
Christoph Sax
5ec4217567 fix(t32): update indent queries & test
The latest release of the grammar changes the handling of consecutive
line breaks. This breaks the existing test for indents.

This commit updates the indent queries and fixes the associated test.
2023-09-14 20:07:02 +02:00
Christoph Sax
536c8a3880 feat(t32): re-enable tests
- Switch to GitLab mirror repository
- Lock grammar version 2.2.0
- Revert "fix(tests): mark t32 as allowed to fail"
  This reverts commit ba223ceecc.
- Revert "fix(tests): remove t32 tests"
  This reverts commit 97957a547b.
2023-07-30 19:29:33 +02:00
Christian Clason
97957a547b fix(tests): remove t32 tests
t32 parser is hosted on Codeberg, which has frequent outages that block
unrelated CI. Revert this commit if and when uptime has improved.
2023-07-29 10:56:17 +02:00
Amaan Qureshi
ad3805f5c3
fix(c)!: update C, CPP parsers and queries
also update derived parsers (arduino, cuda, glsl, hlsl, ispc, objc)
2023-07-27 09:51:13 +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
Alex Manning
f84de0d6cd
fix(gleam): minor indent fixes 2023-06-04 10:39:20 +09:00
Amaan Qureshi
754b509f26
chore: update Gleam 2023-05-29 11:13:36 -04: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
Christoph Sax
16cce8df58
feat(t32): add indent rules (#4782) 2023-05-18 16:40:13 +09: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
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
Zheng PiaoDan
32d0baae44
feat: add indents.scm for nickel (#4790) 2023-05-13 02:49:39 +09:00
Pham Huy Hoang
864b4171de
feat: add swift indents (#4756) 2023-05-08 14:53:31 +09:00
Amaan Qureshi
12453e0e3d
Update Capnp (#4713)
* feat(capnp): update queries from upstream changes

* test: add tests for capnp

* fix indent queries

* ci: fix capnp indent tests

---------

Co-authored-by: Pham Huy Hoang <hoangtun0810@gmail.com>
2023-05-07 00:12:49 +09:00
Stephan Seitz
39a78192fb ci: add tests for #4632
Issue #4632 might be fixed by
https://github.com/UserNobody14/tree-sitter-dart/pull/41
2023-05-05 14:57:51 +02:00