mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-12 00:10:04 -04:00
feat(indent): ecma - support common use-cases
This commit is contained in:
parent
782e299cd6
commit
7a6d93ca5b
8 changed files with 149 additions and 20 deletions
6
tests/indent/ecma/callback.js
Normal file
6
tests/indent/ecma/callback.js
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
const itemById = Array.from(
|
||||
new Set()
|
||||
).reduce((byId, item) => {
|
||||
byId[item.id] = item
|
||||
return result;
|
||||
}, {})
|
||||
Loading…
Add table
Add a link
Reference in a new issue