Commit graph

1845 commits

Author SHA1 Message Date
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
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
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
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
Amaan Qureshi
fe3afeaa73 feat: add puppet 2023-04-26 19:29:01 -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
Amaan Qureshi
b39e6bd615 chore(smali): add tests 2023-04-25 02:37:31 -04:00
Amaan Qureshi
9f157094cd feat(smali): update queries from upstream parser 2023-04-25 02:37:31 -04:00
smjonas
1280315db1 injections(lua): highlight vim.api.nvim_exec2 2023-04-24 15:04:34 -04:00
smjonas
72e2e2df86 injections(lua): highlight Lua code in vim.rpcrequest and vim.rpcnotify 2023-04-24 15:04:34 -04:00
Pham Huy Hoang
2083a34dc6
feat(java): add basic folding (#4701) 2023-04-24 15:32:41 +09:00
Cédric Barreteau
455ded2992 Update ledger highlight queries 2023-04-23 12:09:57 -04:00
Amaan Qureshi
85330918f0 perf: remove match where possible 2023-04-21 18:24:17 -04:00
Amaan Qureshi
654216eb04 fix(c): types are optional in sized_type_specifier 2023-04-21 04:55:20 -04:00
Amaan Qureshi
b9ed96bb6f feat(c): highlight parenthesized function pointer decl identifiers as @function 2023-04-21 03:26:13 -04:00
Amaan Qureshi
c44a63ffdc feat(http): update parser queries from upstream 2023-04-20 05:50:08 -04:00
Amaan Qureshi
831f37635d feat(rust): move some keywords & operators to where they belong 2023-04-19 02:28:00 -04:00
Benny Powers
cdc45ac6ba
feat(markdown): configured aliases for fenced code block languages (#4659)
* feat(markdown): configured aliases for languages

* refactor: use vim.treesitter.match

* refactor: rename local vars

* fix: query syntax
2023-04-18 21:51:14 +09:00
Amaan Qureshi
c79c37927b refactor(smali): refactor queries from upstream 2023-04-17 22:50:34 -04:00
Amaan Qureshi
7ade4d2e77
fix(ecma): comment should be @indent.auto (#4669) 2023-04-18 08:04:04 +09:00
Matthias Queitsch
1185a35705 highlights(prql): replace and and or operators 2023-04-17 14:29:26 -04:00
Serhii Budnik
9d3c14874d fix(ruby): bare_symbol should be @symbol 2023-04-17 02:16:36 -04:00
Amaan Qureshi
da7f886ab5 perf(ecma): remove GraphQL comment injection, use lua-match for gql template detection 2023-04-15 20:13:44 -04:00
John Drouhard
dad0864fa3 feat(cpp): improve function.call to support any level of nesting for qualified identifiers 2023-04-15 07:00:14 -07:00
Pham Huy Hoang
f7e8b7420c fix(php_inject): add missing @combined to text 2023-04-14 13:23:37 -04:00
Pham Huy Hoang
36d4deb294 fix(dart_indent): Fix dart case/default indent
add tests

add tests for fallthrough case

add more tests

keep functional tests
2023-04-14 02:28:42 -07:00
Robert Brunhage
ce3ea7aebe Revert "fix(dart): function argument indents is inconsistent"
This reverts commit ac4020c707.
2023-04-13 02:31:49 -07:00
ObserverOfTime
18f9e1a47f javascript: highlight more builtins
Co-Authored-By: Sergey Berezhnoy <veged@ya.ru>
2023-04-12 13:46:06 -04:00
Robert Brunhage
ac4020c707 fix(dart): function argument indents is inconsistent 2023-04-11 03:09:53 -07:00
Pham Huy Hoang
a82501244a refactor(html_inject): use lua-match where possible 2023-04-10 11:39:13 -04:00
Robert Brunhage
2fe7f969c1
fix(dart): try statement wouldn't indent (#4623) 2023-04-10 06:52:50 +00:00
Jaehwang Jung
fa9fe9a95b fix(rust): highlight SNAKE_CASE scoped identifier name as @constant 2023-04-09 08:12:17 -07:00
Jaehwang Jung
a57d2a599b feat(markdown_inline): add @nospell where appropriate 2023-04-08 15:34:06 -07:00
Pham Huy Hoang
9161093fc7 fix(c_indents): fix expression leaking indents 2023-04-08 09:59:21 -07:00
Jaehwang Jung
e482c9b4e2 feat(cpp): more distinction between function/method declaration and call 2023-04-08 09:40:30 -07:00
Pham Huy Hoang
ab39fe6c86 refactor(html_inject): Use lua-match instead of match 2023-04-08 12:34:08 -04:00