Commit graph

3991 commits

Author SHA1 Message Date
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
Amaan Qureshi
9bfc966769 fix(python): fields should not match uppercase-beginning names 2023-04-29 19:38:30 -04:00
Pham Huy Hoang
1ca9b938c1
Add Python else elif dedent (#4618)
* feat(python): add interactive else/elif dedent

* fixup

* add test
2023-04-29 10:35:35 +02:00
GitHub
358a463c82 Update parsers: erlang, haskell 2023-04-29 03:03:16 -04:00
Amaan Qureshi
b8a0791eb4 refactor(lua): move _VERSION to @constant.builtin, builtin types to @namespace.builtin 2023-04-28 10:29:42 -04:00
Amaan Qureshi
cde306813d feat: add luau 2023-04-28 10:29:42 -04:00
GitHub
2ce3c9080c Update parsers: t32 2023-04-28 02:53:20 -04:00
Kasper Kondzielski
ee64345a37 fix: Correct scope definition for scala
`@scope` included `function_declaration` while is should have included `function_definition` instead. The former one is used to declare abstract functions while the latter one is used to define functions together with their bodies.
2023-04-28 00:34:23 +02:00
github-actions[bot]
08e8b2c08b
Update parsers: kdl, kotlin, t32 (#4720)
Co-authored-by: GitHub <noreply@github.com>
2023-04-27 07:12:29 +00:00
Amaan Qureshi
fe3afeaa73 feat: add puppet 2023-04-26 19:29:01 -04:00
WindSoilder
8ec9a50965
fix: add -f to mv to avoid errors when updating 2023-04-26 18:22:53 -04:00
GitHub
0d7da3bd7d Update parsers: capnp, luap, pony, rust, sql, zig 2023-04-26 02:54:54 -04:00
Amaan Qureshi
b0fe9cea0e
fix(lua): injection eq should be any-of (#4711) 2023-04-26 11:42:06 +09:00
Amaan Qureshi
82bcd8483e fix(solidity): variable should not match last, tidy up highlights 2023-04-25 14:19:44 -04:00
Munif Tanjim
75f911d01f
injections(lua): tweak query to capture string content (#4707) 2023-04-25 16:05:52 +02:00
Amaan Qureshi
87faf372eb fix(python,starlark): builtin types should come after types 2023-04-25 03:04:05 -04:00
Amaan Qureshi
01b42a1a57 feat(python,starlark): highlight type conversions as @function.macro 2023-04-25 03:04:05 -04:00
Amaan Qureshi
5ab25d8a1f fix(python,starlark): update field match pattern 2023-04-25 03:04:05 -04:00