2023-02-20 17:55:06 +01:00
|
|
|
[
|
|
|
|
|
(ast_block)
|
|
|
|
|
(json_array)
|
|
|
|
|
(json_object)
|
|
|
|
|
(parenthesized_expression)
|
2023-03-20 14:44:39 -07:00
|
|
|
] @indent.begin
|
2024-01-20 18:47:56 +09:00
|
|
|
|
2023-02-20 17:55:06 +01:00
|
|
|
; TODO: can't get this to work, goal is to indent at the property ":" prefix
|
2023-03-20 14:44:39 -07:00
|
|
|
; ((list (identifier) (property)) @indent.align
|
|
|
|
|
; (#set! indent.open_delimiter "(")
|
|
|
|
|
; (#set! indent.close_delimiter ")"))
|
2024-01-06 15:05:50 +09:00
|
|
|
[
|
|
|
|
|
")"
|
|
|
|
|
"}"
|
|
|
|
|
"]"
|
2024-02-13 23:00:53 +07:00
|
|
|
] @indent.end @indent.branch
|
2023-02-20 17:55:06 +01:00
|
|
|
|
2024-02-13 23:00:53 +07:00
|
|
|
; I do not know what/when this should be added.
|
|
|
|
|
; Commenting this out for now
|
|
|
|
|
; [
|
|
|
|
|
; "("
|
|
|
|
|
; "{"
|
|
|
|
|
; "["
|
|
|
|
|
; ] @indent.branch
|
2023-02-20 17:55:06 +01:00
|
|
|
[
|
2024-01-06 15:05:50 +09:00
|
|
|
(ERROR)
|
|
|
|
|
(comment)
|
2023-03-20 14:44:39 -07:00
|
|
|
] @indent.auto
|