Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Adding configuration for new, tree-sitter based indentation logic #608

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions settings/language-javascript.cson
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,31 @@
'decreaseIndentPattern': '(?x)
^ \\s* (\\s* /[*] .* [*]/ \\s*)* [}\\])]
'
scopes:
indent:
array: true
object: true
arguments: true
statement_block: true
class_body: true
parenthesized_expression: true
jsx_element: true
jsx_opening_element: true
jsx_expression: true
switch_body: true
indentExceptFirst:
member_expression: true
assignment_expression: true
expression_statement: true
variable_declarator: true
lexical_declaration: true
binary_expression: true
jsx_self_closing_element: true
indentExceptFirstOrBlock:
if_statement: true
while_statement: true
types:
indent:
description: true
outdent:
else: true