((node-is ")") parent-bol 0)
((node-is "]") parent-bol 0)
((node-is ">") parent-bol 0)
- ((parent-is "ternary_expression")
- parent-bol ,ts-mode-indent-offset)
- ((parent-is "member_expression")
- parent-bol ,ts-mode-indent-offset)
- ((parent-is "named_imports")
- parent-bol ,ts-mode-indent-offset)
- ((parent-is "statement_block")
- parent-bol ,ts-mode-indent-offset)
- ((parent-is "type_arguments")
- parent-bol ,ts-mode-indent-offset)
- ((parent-is "variable_declarator")
- parent-bol ,ts-mode-indent-offset)
- ((parent-is "arguments")
- parent-bol ,ts-mode-indent-offset)
- ((parent-is "array")
- parent-bol ,ts-mode-indent-offset)
- ((parent-is "formal_parameters")
- parent-bol ,ts-mode-indent-offset)
- ((parent-is "template_substitution")
- parent-bol ,ts-mode-indent-offset)
- ((parent-is "object_pattern")
- parent-bol ,ts-mode-indent-offset)
- ((parent-is "object")
- parent-bol ,ts-mode-indent-offset)
- ((parent-is "object_type")
- parent-bol ,ts-mode-indent-offset)
- ((parent-is "enum_body")
- parent-bol ,ts-mode-indent-offset)
- ((parent-is "arrow_function")
- parent-bol ,ts-mode-indent-offset)
- ((parent-is "parenthesized_expression")
- parent-bol ,ts-mode-indent-offset)
+ ((parent-is "ternary_expression") parent-bol ,ts-mode-indent-offset)
+ ((parent-is "member_expression") parent-bol ,ts-mode-indent-offset)
+ ((parent-is "named_imports") parent-bol ,ts-mode-indent-offset)
+ ((parent-is "statement_block") parent-bol ,ts-mode-indent-offset)
+ ((parent-is "type_arguments") parent-bol ,ts-mode-indent-offset)
+ ((parent-is "variable_declarator") parent-bol ,ts-mode-indent-offset)
+ ((parent-is "arguments") parent-bol ,ts-mode-indent-offset)
+ ((parent-is "array") parent-bol ,ts-mode-indent-offset)
+ ((parent-is "formal_parameters") parent-bol ,ts-mode-indent-offset)
+ ((parent-is "template_substitution") parent-bol ,ts-mode-indent-offset)
+ ((parent-is "object_pattern") parent-bol ,ts-mode-indent-offset)
+ ((parent-is "object") parent-bol ,ts-mode-indent-offset)
+ ((parent-is "object_type") parent-bol ,ts-mode-indent-offset)
+ ((parent-is "enum_body") parent-bol ,ts-mode-indent-offset)
+ ((parent-is "arrow_function") parent-bol ,ts-mode-indent-offset)
+ ((parent-is "parenthesized_expression") parent-bol ,ts-mode-indent-offset)
;; TSX
- ((parent-is "jsx_opening_element")
- parent ,ts-mode-indent-offset)
+ ((parent-is "jsx_opening_element") parent ,ts-mode-indent-offset)
((node-is "jsx_closing_element") parent 0)
- ((parent-is "jsx_element")
- parent ,ts-mode-indent-offset)
+ ((parent-is "jsx_element") parent ,ts-mode-indent-offset)
((node-is "/") parent 0)
- ((parent-is "jsx_self_closing_element")
- parent ,ts-mode-indent-offset)
+ ((parent-is "jsx_self_closing_element") parent ,ts-mode-indent-offset)
(no-node parent-bol 0)))
"Tree-sitter indent rules.")