summaryrefslogtreecommitdiff
path: root/runtime/queries/fish/indents.toml
diff options
context:
space:
mode:
authorSebastian Neubauer2021-12-21 02:02:53 +0000
committerGitHub2021-12-21 02:02:53 +0000
commit205dc8776b6ff4f5ab331df9c33b33e44caab12c (patch)
treeb7c2eca341361ad8459ee1a3cc0458e6542445a7 /runtime/queries/fish/indents.toml
parentf16651b590b7f8679e520407002d6da0f169cac2 (diff)
Add fish highlighting (#1308)
The highlights were copied and modified from https://github.com/nvim-treesitter/nvim-treesitter/blob/master/queries/fish/highlights.scm
Diffstat (limited to 'runtime/queries/fish/indents.toml')
-rw-r--r--runtime/queries/fish/indents.toml12
1 files changed, 12 insertions, 0 deletions
diff --git a/runtime/queries/fish/indents.toml b/runtime/queries/fish/indents.toml
new file mode 100644
index 00000000..6f1e563a
--- /dev/null
+++ b/runtime/queries/fish/indents.toml
@@ -0,0 +1,12 @@
+indent = [
+ "function_definition",
+ "while_statement",
+ "for_statement",
+ "if_statement",
+ "begin_statement",
+ "switch_statement",
+]
+
+outdent = [
+ "end"
+]