| Commit message (Collapse) | Author | Age | Files | Lines |
| ... | |
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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)) 😁.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- 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
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
| |
- functions
- builtin functions with prefix
- add test file
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
| |
* feat: add nasm parser
* chore: update highlights
---------
Co-authored-by: Amaan Qureshi <amaanq12@gmail.com>
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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>
|
| |
|
|
| |
typescript, usd, wing
|
| | |
|
| | |
|
| |
|
|
|
|
|
| |
* fix(haskell): highlight fixes + merge qualified/unqualified queries
* fix(haskell): lambda params + add exp_record to function.call args
* style: apply PR suggestions
|
| |
|
|
| |
typescript, wing
|
| | |
|
| |
|
| |
Co-authored-by: Christian Clason <c.clason@uni-graz.at>
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
| |
Co-authored-by: GitHub <noreply@github.com>
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
| |
- 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)
|
| | |
|
| |
|
|
|
| |
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
* feat(juia): added all public built-in types in Core and Base
* feat(julia): removed private types from built-in type list
|
| | |
|
| | |
|
| | |
|
| | |
|