diff options
| author | Munif Tanjim <hello@muniftanjim.dev> | 2022-01-21 18:44:30 +0600 |
|---|---|---|
| committer | Christian Clason <christian.clason@uni-due.de> | 2022-01-21 16:40:36 +0100 |
| commit | 7a6d93ca5b95b4485dd70c1a1d813bb5a80fcc07 (patch) | |
| tree | a3ee6950f76938ccc8e85b9d78f9da92b097e1dd /tests/indent/ecma/callback.js | |
| parent | fix(indent): c/cpp - support newline after closing brace (diff) | |
| download | nvim-treesitter-7a6d93ca5b95b4485dd70c1a1d813bb5a80fcc07.tar nvim-treesitter-7a6d93ca5b95b4485dd70c1a1d813bb5a80fcc07.tar.gz nvim-treesitter-7a6d93ca5b95b4485dd70c1a1d813bb5a80fcc07.tar.bz2 nvim-treesitter-7a6d93ca5b95b4485dd70c1a1d813bb5a80fcc07.tar.lz nvim-treesitter-7a6d93ca5b95b4485dd70c1a1d813bb5a80fcc07.tar.xz nvim-treesitter-7a6d93ca5b95b4485dd70c1a1d813bb5a80fcc07.tar.zst nvim-treesitter-7a6d93ca5b95b4485dd70c1a1d813bb5a80fcc07.zip | |
feat(indent): ecma - support common use-cases
Diffstat (limited to 'tests/indent/ecma/callback.js')
| -rw-r--r-- | tests/indent/ecma/callback.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/indent/ecma/callback.js b/tests/indent/ecma/callback.js new file mode 100644 index 000000000..a4e1e533e --- /dev/null +++ b/tests/indent/ecma/callback.js @@ -0,0 +1,6 @@ +const itemById = Array.from( + new Set() +).reduce((byId, item) => { + byId[item.id] = item + return result; +}, {}) |
