Commit graph

4023 commits

Author SHA1 Message Date
GitHub
4d0520ee09 Update parsers: c_sharp, erlang, glsl, hlsl, nickel, t32 2023-05-18 10:46:34 +02:00
Christoph Sax
16cce8df58
feat(t32): add indent rules (#4782) 2023-05-18 16:40:13 +09:00
Pham Huy Hoang
102f1b2f55 fixup: use correct require syntax 2023-05-17 15:35:28 +02:00
Christian Clason
fa23ff4bd7 refactor(indent): backport improvements from main
* replace ts_utils.memoize_by_buftick by simpler implementation
* simplify construction of hash map
* prefer Neovim APIs
2023-05-17 15:25:35 +02:00
GitHub
aa44e5fc5f Update parsers: c 2023-05-17 08:50:04 +02:00
Pham Huy Hoang
d2b78324f2 fix indent/fold memleak 2023-05-16 13:25:02 +02:00
GitHub
26230f06b6 Update parsers: dart, gitcommit, usd 2023-05-16 09:44:08 +02:00
Matthias Queitsch
27079f7060 highlights(sql): refactor count to generic invocation 2023-05-15 20:00:22 -04:00
Christian Clason
95850f7964 fix: force upstreamed predicates 2023-05-15 22:31:28 +02:00
Pham Huy Hoang
217467c262 remove unnecessary ft aus
specify specific plugin files to load
2023-05-15 09:59:24 +02: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
GitHub
3b0c133c31 Update parsers: dart, query 2023-05-15 02:54:45 -04: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
GitHub
15300c1a10 Update parsers: bicep, c_sharp, cpon, func, gosum, hare, kdl, lua, luadoc, luap, puppet, smali 2023-05-13 02:50:24 -04: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
GitHub
7e1cb38c38 Update parsers: lua, t32 2023-05-12 09:19:01 +02:00
Gregg Jansen van Vüren
39cf5cbcfd
feat(java): add more foldable nodes 2023-05-11 15:27:43 -04:00
GitHub
f5182b51f7 Update parsers: latex, lua 2023-05-11 20:05:21 +02:00
GitHub
957aefe814 Update parsers: cuda, hlsl, t32 2023-05-11 09:10:11 +02:00
GitHub
73c7af9cdb Update parsers: c_sharp 2023-05-10 18:01:39 +02:00
ObserverOfTime
f9cfd40c08 comment: remove user mention highlight 2023-05-10 18:53:57 +03:00
GitHub
78b3a82293 Update parsers: cpp, t32 2023-05-10 08:58:31 +02:00
Amaan Qureshi
6e8ad92031 feat(typescript): add non-null operator 2023-05-09 09:14:28 -04:00
Amaan Qureshi
a79baf0399 fix(typescript): remove duplicate capture 2023-05-09 09:14:28 -04:00
Amaan Qureshi
5182759e17 style(rust): better formatting 2023-05-09 08:33:38 -04:00
Amaan Qureshi
6df6dd2622 feat(rust): distinguish enum members better 2023-05-09 08:33:38 -04:00
GitHub
74779349fc Update parsers: slint 2023-05-09 12:19:17 +02:00
Derek Stride
0ec48923e5
feat(sql): add more keywords 2023-05-08 17:40:33 -04:00
GitHub
402f1b8d3b Update parsers: clojure, glsl, ledger, t32 2023-05-08 09:26:51 +02:00
Pham Huy Hoang
864b4171de
feat: add swift indents (#4756) 2023-05-08 14:53:31 +09:00
github-actions[bot]
b231afbad1
Update parsers: astro, c, haskell, t32 (#4769)
Co-authored-by: GitHub <noreply@github.com>
2023-05-07 08:29:23 +00: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
GitHub
e8081bb162 Update parsers: haskell, vim, vimdoc 2023-05-06 10:48:57 +02:00
haoxian
8646c0d2ea
feat(erlang): add new keyword and operator from OTP25 (#4765) 2023-05-06 08:39:30 +00: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
GitHub
f0b50973f3 Update parsers: bash, dart, haskell, http 2023-05-05 08:54:14 +02:00
Iron-E
54741de02c
fix(java): capture type parameter brackets as @punctuation.delimiter
It is currently highlighted as `@operator`
2023-05-04 15:50:31 -04:00
Iron-E
239bb86b54
feat(rust): capture debug macros as @debug
* ref(rust): highlight debug macros as `@debug`

E.g. `dbg!` and `debug_assert!`

* Update queries/rust/highlights.scm

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

---------

Co-authored-by: Amaan Qureshi <amaanq12@gmail.com>
2023-05-04 15:49:20 -04:00
Iron-E
31d2f60734
fix(c_sharp): highlight < & > as @punctuation.bracket only in type param lists
This fixes highlighting of `x > 4`, for example
2023-05-04 15:46:41 -04:00
Iron-E
2115c7d585
feat(c_sharp): add capture for ternary operators 2023-05-04 15:37:29 -04:00
github-actions[bot]
01c23a8036
Update parsers: dart, llvm (#4755)
Co-authored-by: GitHub <noreply@github.com>
2023-05-04 07:10:53 +00:00
Pham Huy Hoang
4fe6b4c07f fix: add @combined to markdown html 2023-05-03 16:23:09 -04:00
Benny Powers
bff7115bf8
perf(html): onevent attrs (#4752) 2023-05-03 10:18:03 +00:00
Benny Powers
5e95ecaad0
injections(html): event attributes (#4750)
injections(html): inject javascript into event attributes

Adds javascript injections to HTML `onevent` attributes.
2023-05-03 09:56:13 +00:00
GitHub
1e9e1492ee Update parsers: blueprint, c_sharp, dockerfile, haskell 2023-05-03 02:48:48 -04:00
Amaan Qureshi
e2cf8977fd feat(go): highlight constructors, remove _ as @constant 2023-05-02 07:52:45 -04:00