Commit graph

4008 commits

Author SHA1 Message Date
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
github-actions[bot]
dd1cd54622
Update parsers: lua (#4746)
Co-authored-by: GitHub <noreply@github.com>
2023-05-02 08:37:14 +00:00
Pham Huy Hoang
b4d2640eab
feat: add indents for ocaml and ocaml interface (#4725) 2023-05-01 20:42:21 +09:00
GitHub
c39b5d3fd7 Update parsers: janet_simple, swift, vimdoc 2023-05-01 04:39:26 -04:00
Pham Huy Hoang
25bdc313c7
fix(lua_inject): remove need for surrounding quote (#4740) 2023-04-30 23:46:03 -04:00
Pham Huy Hoang
da79f9afe6 feat: add py-script injections for html 2023-04-30 23:30:10 -04:00
Github Actions
195a0cda1a Update README 2023-04-30 23:10:32 -04:00
Pham Huy Hoang
ca8a981db3
fix(query): add missing dedent for "]" (#4739) 2023-05-01 03:04:27 +00:00
sogaiu
6fe60587d1 Remove some sections and add some missing things
The original approach was to emulate what was in Clojure's
highlights.scm file, but it appears that there were a number of
questionable items, so some sections were removed.

As a consequence, there were some items that ended up unmentioned.  An
attempt was made to rescue most of these and add some missing items to
a renamed "Special forms and builtin macros" section.

Five items were removed entirely.  These are:

* Single quote
* Tilde
* Pipe
* Comma
* Semicolon

It was unclear where to put these and it's also unclear whether
highlighting them would really be beneficial.  Perhaps what to do, if
anything, will become clear in the future.
2023-04-30 22:06:17 -04:00
sogaiu
b9d183c2c5 Update list of functions 2023-04-30 22:06:17 -04:00
sogaiu
0d61fdae11 Adjust indentation 2023-04-30 22:06:17 -04:00
sogaiu
c780ba9b6c Update list of macros 2023-04-30 22:06:17 -04:00
sogaiu
8db7eeba9d Use 2 semicolons for better editor interop 2023-04-30 22:06:17 -04:00
sogaiu
93b540f917 feat: add janet_simple 2023-04-30 22:06:17 -04:00
github-actions[bot]
54909e8df9
Update parsers: haskell (#4735)
Co-authored-by: GitHub <noreply@github.com>
2023-04-30 08:39:06 +00:00
Amaan Qureshi
7133622c44
fix(starlark): fields should not match uppercase-beginning names (#4734) 2023-04-30 09:56:30 +09:00