aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* fix(markdown): give code blocks higher priority than block quotesRiley Bruins2023-10-151-1/+1
|
* fix(scala): Mark (lambda_expression) without bindings as @defintition.parametersRobert Jackson2023-10-151-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When you have a lambda expression like: ```scala val fruits = List("apple", "banana", "avocado", "papaya") val countsToFruits = fruits.groupBy(fruit => fruit.count(_ == 'a')) for ((count, fruits) <- countsToFruits) { println(s"with (fruits) 'a' × $count = $fruits") } ``` The `fruit => fruit.count(_ == 'a')` lambda expression (note: without wrapping parenthesis) does not create a `(binding)` node. Its syntax tree is: ``` (lambda_expression) ; [5:18 - 47] parameters: (identifier) ; [5:18 - 22] (call_expression) ; [5:27 - 47] function: (field_expression) ; [5:27 - 37] value: (identifier) ; [5:27 - 31] field: (identifier) ; [5:33 - 37] arguments: (arguments) ; [5:38 - 47] (infix_expression) ; [5:39 - 46] left: (wildcard) ; [5:39 - 39] operator: (operator_identifier) ; [5:41 - 42] right: (character_literal) ; [5:44 - 46] ``` That example just _happens_ to be **exactly** one of the example from https://www.scala-lang.org/ ([see playground](https://scastie.scala-lang.org/S0bkCiXkQiuOMXnlhWn46g)) 😁.
* feat(haskell): highlights improvementsMarc Jakobi2023-10-152-67/+142
| | | | | | | | | | | | | | | | - Consider functions with only one value on the rhs as variables - Applied composition: `(f . g) <param>` -> `@function.call` - View patterns - `@field` in record update expression - type_tuple and type_list as variables - quantifier for `exp_apply (<rhs>)+ (variable)` - type_tuple and type_list as variables - Treat signatures with only one value on the rhs as variables (except for `IO a`) -> Fixes #5505. - Remove redundant anchors from signature function queries. - Move signature function queries to give them higher priority - Scoped function types - Add signature query to function with parameters query
* fix(typescript): do not highlight undefined as variableMunif Tanjim2023-10-151-4/+0
|
* Update parsers: beancount, wingGitHub2023-10-151-2/+2
|
* fix(php): highlight `never` as `@type.builtin` (#5522)nsfisis2023-10-141-0/+1
|
* Update parsers: liquidsoap, t32, wingGitHub2023-10-141-3/+3
|
* feat(java): highlight `var` as `@type.builtin`Ibrahim Delice2023-10-131-0/+2
|
* fix(java): move @ to `@attribute`Ibrahim Delice2023-10-131-1/+2
|
* fix(injections): fix injection for hurl for new injection syntaxKevin Durbin2023-10-131-1/+1
|
* feat(nix): some highlight improvementsMarc Jakobi2023-10-122-1/+30
| | | | | - functions - builtin functions with prefix - add test file
* Update parsers: wingGitHub2023-10-121-1/+1
|
* Update parsers: bash, dockerfile, groovy, python, swift, wingGitHub2023-10-111-6/+6
|
* fix(haskell): prevent segfault due to anchorless queries (#5502)Marc Jakobi2023-10-102-36/+31
|
* Update parsers: beancount, vimdoc, wingGitHub2023-10-101-3/+3
|
* Update READMEGithub Actions2023-10-091-1/+1
|
* chore(clojure): update maintainerNoah2023-10-091-1/+1
|
* feat: add nasm parser (#5475)ObserverOfTime2023-10-095-0/+159
| | | | | | | | | * feat: add nasm parser * chore: update highlights --------- Co-authored-by: Amaan Qureshi <amaanq12@gmail.com>
* Update parsers: swift, wingGitHub2023-10-091-2/+2
|
* Update parsers: wingGitHub2023-10-081-1/+1
|
* Update parsers: erlang, kotlin, wingGitHub2023-10-071-3/+3
|
* feat(authzed): add parser and highlight queries. (#5426)Mathew Polzin2023-10-075-0/+72
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * feat(authzed): add parser and highlight queries * Update queries/authzed/highlights.scm use `any-of` for list of alternative words. Co-authored-by: Pham Huy Hoang <hoangtun0810@gmail.com> * add injections queries file. * Update queries/authzed/highlights.scm * tweak whitespace * fix errors with capture names. * style(authzed): reformat highlights * add self as maintainer * Update lua/nvim-treesitter/parsers.lua Co-authored-by: Christian Clason <c.clason@uni-graz.at> * Add to lockfile and readme * feat(authzed): Updates to queries and lockfile around newest Authzed parser changes. * Update queries/authzed/highlights.scm Co-authored-by: Pham Huy Hoang <hoangtun0810@gmail.com> * Update queries/authzed/highlights.scm Co-authored-by: Pham Huy Hoang <hoangtun0810@gmail.com> * unnest here similarly to recommended elsewhere * Update highlights.scm Co-authored-by: ObserverOfTime <chronobserver@disroot.org> --------- Co-authored-by: Pham Huy Hoang <hoangtun0810@gmail.com> Co-authored-by: ObserverOfTime <chronobserver@disroot.org> Co-authored-by: Christian Clason <c.clason@uni-graz.at>
* Update parsers: cuda, elm, erlang, glimmer, glsl, hlsl, java, tsx, ↵GitHub2023-10-061-11/+11
| | | | typescript, usd, wing
* fix(json5): update queries from upstreamPham Huy Hoang2023-10-062-4/+4
|
* java(highlights): add missing import class pattern (#5483)Pham Huy Hoang2023-10-061-2/+2
|
* fix(haskell): highlight fixes (#5470)Marc Jakobi2023-10-052-58/+274
| | | | | | | * fix(haskell): highlight fixes + merge qualified/unqualified queries * fix(haskell): lambda params + add exp_record to function.call args * style: apply PR suggestions
* Update parsers: c, comment, glimmer, json, liquidsoap, rst, sql, tsx, ↵GitHub2023-10-051-12/+12
| | | | typescript, wing
* Update READMEGithub Actions2023-10-041-1/+1
|
* feat: add liquidsoapRomain Beauxis2023-10-047-0/+187
| | | Co-authored-by: Christian Clason <c.clason@uni-graz.at>
* fix(c): add missing foldsAmaan Qureshi2023-10-041-0/+2
|
* Update parsers: wingGitHub2023-10-041-1/+1
|
* feat(query): use @function.call for predicateJaehwang Jung2023-10-031-1/+1
|
* feat(ocaml): use @function.call where appropriateJaehwang Jung2023-10-031-3/+3
|
* Update parsers: apex, bash, html, kotlin, norg, php, soql, sosl, sql, wingGitHub2023-10-031-10/+10
|
* feat(haskell): highlights improvements + tests (#5466)Marc Jakobi2023-10-022-8/+233
|
* Update parsers: wingGitHub2023-10-021-1/+1
|
* injections(nix): dynamic language injection via commentsfigsoda2023-10-011-0/+9
|
* Update parsers: vim, wing (#5463)github-actions[bot]2023-10-011-2/+2
| | | Co-authored-by: GitHub <noreply@github.com>
* Update parsers: wingGitHub2023-09-301-1/+1
|
* Update parsers: wingGitHub2023-09-291-1/+1
|
* Update parsers: dockerfile, ssh_config, t32, wingGitHub2023-09-281-4/+4
|
* chore(haskell): add mrcjkb as maintainerMarc Jakobi2023-09-272-1/+2
|
* feat(highlights): some haskell additionsMarc Jakobi2023-09-271-5/+105
| | | | | | | | | | | - Re-add (module) @namespace - Exception handling - Debugging - `otherwise` = boolean `True` - `qq` string quasiquotes - Documentation comments (draft) - Function/lambda parameters - Remove recently added @ (already defined as an operator)
* Update parsers: git_config, gleam, wingGitHub2023-09-271-3/+3
|
* solidity: Update highlights.scm (#5453)zeroknots2023-09-271-0/+1
| | | | | https://soliditylang.org/blog/2021/04/21/custom-errors/ error keyword was introduced in 0.8.4
* feat(julia): added missing String and AbstractString builtin types (#5440)Enzo L F2023-09-271-27/+215
| | | | | | | * feat(julia): added missing String and AbstractString builtin types * feat(juia): added all public built-in types in Core and Base * feat(julia): removed private types from built-in type list
* Update parsers: erlang, wingGitHub2023-09-261-2/+2
|
* feat(highlights): some haskell improvementsMarc Jakobi2023-09-251-1/+6
|
* Update parsers: haskell, scala, wingGitHub2023-09-251-3/+3
|
* Use scala parser for sbt filetypeghostbuster912023-09-251-0/+1
|