From 31d41080edd216649d1db9ec7303561c58716d1d Mon Sep 17 00:00:00 2001 From: Blaž Hrastnik Date: Sat, 15 May 2021 01:34:34 +0900 Subject: Add indentation queries for golang. --- runtime/queries/go/indents.toml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 runtime/queries/go/indents.toml (limited to 'runtime') diff --git a/runtime/queries/go/indents.toml b/runtime/queries/go/indents.toml new file mode 100644 index 00000000..d75ef7ec --- /dev/null +++ b/runtime/queries/go/indents.toml @@ -0,0 +1,21 @@ +indent = [ + "import_declaration", + "const_declaration", + "var_declaration", + "function_declaration", + "method_declaration", + "composite_literal", + "func_literal", + "literal_value", + "expression_case", + "default_case", + "argument_list", + "block" +] + +outdent = [ + "case", + "}", + "]", + ")" +] -- cgit v1.2.3-70-g09d2