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

Commit d826f8f

Browse files
committed
Adding configuration for new, tree-sitter based indentation logic in core
See this PR in atom/atom: atom/atom#18321. Once the other PR is merged, this one then fixes #594. Updated: now without the need for a callback function as part of configuration
1 parent 25863da commit d826f8f

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

settings/language-javascript.cson

+28
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,31 @@
1111
'decreaseIndentPattern': '(?x)
1212
^ \\s* (\\s* /[*] .* [*]/ \\s*)* [}\\])]
1313
'
14+
scopes:
15+
indent:
16+
array: true
17+
object: true
18+
arguments: true
19+
statement_block: true
20+
class_body: true
21+
parenthesized_expression: true
22+
jsx_element: true
23+
jsx_opening_element: true
24+
jsx_expression: true
25+
switch_body: true
26+
comment: true
27+
indentExceptFirst:
28+
member_expression: true
29+
assignment_expression: true
30+
expression_statement: true
31+
variable_declarator: true
32+
lexical_declaration: true
33+
binary_expression: true
34+
jsx_self_closing_element: true
35+
indentExceptFirstOrBlock:
36+
if_statement: true
37+
while_statement: true
38+
types:
39+
indent: {}
40+
outdent:
41+
else: true

0 commit comments

Comments
 (0)