mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-17 02:40:09 -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/ternary.js
Normal file
6
tests/indent/ecma/ternary.js
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
const value =
|
||||
condition
|
||||
? typeof number === 'string'
|
||||
? Number(number)
|
||||
: number
|
||||
: null;
|
||||
Loading…
Add table
Add a link
Reference in a new issue