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

Commit

Permalink
Adding configuration for new, tree-sitter based indentation logic in …
Browse files Browse the repository at this point in the history
…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
  • Loading branch information
chfritz committed Jan 21, 2019
1 parent 25863da commit d826f8f
Showing 1 changed file with 28 additions and 0 deletions.
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
comment: 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: {}
outdent:
else: true

0 comments on commit d826f8f

Please sign in to comment.