Skip to content

Commit 0803731

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 atom#594. Updated: now without the need for a callback function as part of configuration
1 parent 25863da commit 0803731

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

Diff for: settings/language-javascript.cson

+27
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,30 @@
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+
indentExceptFirstOrBlock:
35+
if_statement: true
36+
while_statement: true
37+
types:
38+
indent: {}
39+
outdent:
40+
else: true

0 commit comments

Comments
 (0)