Commit graph

2161 commits

Author SHA1 Message Date
Riley Bruins
1610b1aafb
feat(python): @string.regex capture, injection improvements (#5697)
* feat(python): `@string.regex` capture, injection improvements

* fix(python): match regex only for first argument of re module

* chore(python): remove unneeded capture

Co-authored-by: Santos Gallegos <stsewd@proton.me>

* fix(python): only highlight string content itself as regex

---------

Co-authored-by: Santos Gallegos <stsewd@proton.me>
2023-11-21 01:26:18 +09:00
Amaan Qureshi
d876296476
feat: add Linkerscript (#5693) 2023-11-19 18:10:52 +09:00
Riley Bruins
b016211057 feat(lua): folds for parameter, argument lists 2023-11-19 10:45:33 +02:00
Riley Bruins
f2de95e30a
feat(markdown): conceals for bullets, block quotes
* feat(markdown): conceals for bullets, block quotes

* fix: remove conceals for block quotes, change list minus to em dash

* fix(markdown): allow empty bullets to be concealed
2023-11-19 10:20:51 +09:00
ObserverOfTime
f9999888eb feat(jq): add locals queries
and highlight function calls
2023-11-18 19:03:19 -05:00
ObserverOfTime
f1fc7c2e76 feat(xml,dtd): add locals queries 2023-11-18 19:03:19 -05:00
ObserverOfTime
9e5a34c2b9 feat(gitattributes): add locals queries 2023-11-18 19:03:19 -05:00
ObserverOfTime
2bd2c4ce23 feat(ssh_config): add locals queries 2023-11-18 19:03:19 -05:00
ObserverOfTime
78740f1895 feat(udev): add locals queries 2023-11-18 19:03:19 -05:00
ObserverOfTime
6498be930e feat(xcompose): add locals queries 2023-11-18 19:03:19 -05:00
Marc Jakobi
5240574bcb
feat(haskell): tweak highlights
* add cases for `qualified_variable`

* add function defined in terms of composition
2023-11-18 19:02:29 -05:00
Pham Huy Hoang
a9f4a916aa chore(apex): update apex queries 2023-11-18 11:30:28 +01:00
Amaan Qureshi
557561fbc1 chore(rust): update queries from upstream 2023-11-17 13:32:09 +01:00
Pham Huy Hoang
8199529bc4 chore(apex): Update queries 2023-11-17 18:09:15 +09:00
Vincent Rischmann
da6646c3e5
feat: add templ
---------

Co-authored-by: ObserverOfTime <chronobserver@disroot.org>
2023-11-16 16:12:55 -05:00
Mark McCulloh
17e77749c1
fix(wing): update parser and queries, add maintainer (#5671) 2023-11-13 19:04:27 +00:00
Riley Bruins
075a64addc feat: highlight regular latex text to maintain consistency with boldfaced and italic text 2023-11-11 10:14:43 +01:00
Amaan Qureshi
c543ffae1c fix(ecma): prioritize builtins 2023-11-10 19:08:12 -05:00
Amaan Qureshi
f53e6e82df fix(cpp): highlight constexpr 2023-11-10 16:08:46 -05:00
ObserverOfTime
d4fb7557ba feat: add xcompose parser 2023-11-10 14:10:20 -05:00
ObserverOfTime
04a9a90c2a fix(htmldjango): improve highlights 2023-11-10 15:22:40 +02:00
ObserverOfTime
b09d645098 fix(kotlin): improve highlights
Co-authored-by: Anthony Shi <69449791+anthony-S93@users.noreply.github.com>
2023-11-10 11:15:30 +02:00
postsolar
bf18ff20ae
feat(purescript): add parser and queries (#5626) 2023-11-08 18:07:02 +02:00
Willem-J-an
629cae1f0f
feat(kusto): add kusto parser and highlights (#5632)
* feat(kusto): add kusto parser and highlights

* feat(kusto): improve highlights

* Update queries/kusto/highlights.scm

Co-authored-by: ObserverOfTime <chronobserver@disroot.org>

* chore(kusto): remove unneeded filetype

---------

Co-authored-by: Willem Jan Noort <noortw01@heiway.net>
Co-authored-by: ObserverOfTime <chronobserver@disroot.org>
2023-11-08 09:11:19 +00:00
Amaan Qureshi
eacb5e9468 chore(bitbake): update highlights from upstream 2023-11-08 08:08:17 +01:00
ObserverOfTime
9a746b4b6a feat: add udev rules parser 2023-11-07 12:17:38 +02:00
Pham Huy Hoang
80f66cdef1
injections(vue): inject typescript instead of js (#5577)
Interpolations (`{{valid js code}}`) and directive attributes
(`<element :directive="valid js code"`) can also be typescript code,
hence we can inject typescript instead of javascript here and still
be ok with highlights (bar some syntax differences between ts and js)
2023-11-06 11:04:13 +09:00
Ramkumar Ramachandra
b3d2c36254 mlir: update highlights.scm, parser 2023-11-05 13:36:18 +01:00
Brian Albert Monroe
c5a7533113
fix(rnoweb): add highlights query (#5622)
Add a placeholder highlights query files for rnoweb to enable treesitter highlighting
2023-11-03 22:51:41 +09:00
Veesh Goldman
a689957480 pod: fix highlights 2023-11-03 14:23:40 +02:00
Veesh Goldman
fca784da0e perl: fix highlights for builtins 2023-11-03 14:23:40 +02:00
Derek Stride
1920285ec1 fix(sql): update queries from upstream 2023-11-02 19:39:34 +01:00
Azad
198015cca1
fix(query): stricter match for extends directive (#5604) 2023-11-02 19:02:41 +09:00
Amaan Qureshi
051ce73fcd chore(odin): update highlights from upstream 2023-11-01 20:08:04 -04:00
aMOPel
aeb5ad8ae1
feat(nim): added nim parser and queries (#5556)
* feat(nim): added nim parser and queries

* correct scanner.cc to scanner.c

Co-authored-by: Christian Clason <c.clason@uni-graz.at>

* fix(nim): corrected capture for @function.macro

* feat(nim highlights): added @field capture for discriminator field in
object variant

* bumped parser version, adapted highlights.scm and condensed
injections.scm

* improved nim_format_string highlights.scm

* bump nim parser version again

* removed overlap between queries for generalized strings in
injections.scm

* improved formattin] in nim_format_string/injections.scm

Co-authored-by: ObserverOfTime <chronobserver@disroot.org>

* corrected asm parser name in injections.scm

Co-authored-by: ObserverOfTime <chronobserver@disroot.org>

* improved formatting in highlights.scm

Co-authored-by: ObserverOfTime <chronobserver@disroot.org>

* removed @error capture from highlights.scm

Co-authored-by: ObserverOfTime <chronobserver@disroot.org>

* improved wording in comment in highlights.scm

Co-authored-by: ObserverOfTime <chronobserver@disroot.org>

* removed priority from (dot_expression left: @none) capture, since it's
at the end of the file anyways

* removed comments listing unused captures

* reverted @error capture in nim_format_string/highlights.scm back to
@none

* condensed string alternatives in injections.scm

Co-authored-by: ObserverOfTime <chronobserver@disroot.org>

* condensed string alternatives in injections.scm (second part)

Co-authored-by: ObserverOfTime <chronobserver@disroot.org>

* added comment to explain reasoning behind priority use

* swapped order of @punctuation.delimiter and @operator to get rid of
superfluous comment

* moved macro and template keywords to @preproc capture

* removed priorities in highlights.scm and shifted @parameter capture
behind @type capture

* improved formatting in locals.scm

* added queries for missing cases of @definition.namespace capture in
locals.scm

* removed some trailing whitespace

* added @namespace queries for highlights.scm

* bumped parser version again

* removed superfluous @type capture

* removed `@type`s `has-ancestor` and removed `(_ (_ ...` structures,
but added priorities

* added missing @constant capture to some queries in highlights.scm

* fixed priority numbers so they work when injecting nim (in markdown)

* added @none captures back to injection targets

* added (assembly_statement) injection query

* added indent queries

* removed indents.scm again

* added some missing queries for dot_generic_call, concept_declaration and
pragma_statement

---------

Co-authored-by: Christian Clason <c.clason@uni-graz.at>
Co-authored-by: ObserverOfTime <chronobserver@disroot.org>
2023-10-30 20:35:51 +09:00
Amaan Qureshi
6f8387f05d fix(rust): add foreign_mod_item to folds 2023-10-30 04:30:30 -04:00
Veesh Goldman
c36681bb49 feat: bump perl 2023-10-29 20:56:01 +01:00
Ronan Arraes Jardim Chagas
a741b5dd0d Improve curly expression alignment 2023-10-29 01:37:31 +02:00
Ronan Arraes Jardim Chagas
639c22c52c Improve indentation in Julia language
This commit improves the indentation in the function declaration,
function call, and in the assignment expressions.
2023-10-29 01:37:31 +02:00
Ronan Arraes Jardim Chagas
a07ce2155b
Fix indent. of curly expressions and of ],} in BOL (#5580) 2023-10-27 21:53:58 +09:00
Ronan Arraes Jardim Chagas
1e58a81450
Fix Julia indentation after end and with parenthesis at the beginning of line (#5579) 2023-10-27 12:28:44 +00:00
Pham Huy Hoang
107e61afb7 refactor: Remove all (ERROR) @error captures
As discussed in PR#5421, capturing `@error` is inconsistent, requiring
deep nesting (or priority) in order to correctly have red backgrounds to
it.

Some queries has this capture, some don't. For consistency purposes,
removing all of them is more preferable.

For re-enabling error, either add `(ERROR) @error` or `(ERROR _ @error)`
to your custom queries.
2023-10-25 18:18:50 +02:00
Teddytrombone
16af5ef490
feat(typoscript) Added parser and queries for TypoScript (#5564)
* Added configuration for TypoScript

* Removed duplicated code; Applied folding suggestion

* Applied suggestions

* Update queries/typoscript/highlights.scm

Co-authored-by: ObserverOfTime <chronobserver@disroot.org>

---------

Co-authored-by: ObserverOfTime <chronobserver@disroot.org>
2023-10-24 07:48:33 +00:00
Riley Bruins
74ea25f95d
feat(lua): highlight variadic expressions as builtin parameters (#5567) 2023-10-24 11:19:12 +09:00
Veesh Goldman
84544f5cd3
chore(perl): update parser 2023-10-23 14:40:18 -04:00
r001
0b50cf1592
fix(leo): highlights fixes (#5563)
* make sure affine_group has priority, so parens and comma will not be miscolored; added `annotation` as @attribute

* `then` is not used as conditional, so moved to keywords

* finalize function highlight added

* differentiate between constant and variable variable identifiers
2023-10-23 19:15:49 +09:00
Colin Kennedy
0179a89656
feat: add objdump to the supported languages (#5548) 2023-10-22 12:05:20 +03:00
Amaan Qureshi
6cb93819c9 feat: add GN (Generate Ninja) 2023-10-22 01:17:15 -04:00
r001
99988f6eb7
feat: leo parser and queries (#5542) 2023-10-22 10:23:02 +09:00
Tomasz N
ce2a9fb89a
fix(phpdoc): disable spell checking of attribute names (#5015) 2023-10-22 10:21:51 +09:00