aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--book/src/generated/lang-support.md4
-rw-r--r--runtime/queries/bash/highlights.scm34
-rw-r--r--runtime/queries/css/indents.scm7
-rw-r--r--runtime/queries/make/indents.scm8
4 files changed, 41 insertions, 12 deletions
diff --git a/book/src/generated/lang-support.md b/book/src/generated/lang-support.md
index ee01c403..6fedace6 100644
--- a/book/src/generated/lang-support.md
+++ b/book/src/generated/lang-support.md
@@ -21,7 +21,7 @@
| cpon | ✓ | | ✓ | |
| cpp | ✓ | ✓ | ✓ | `clangd` |
| crystal | ✓ | ✓ | | `crystalline` |
-| css | ✓ | | | `vscode-css-language-server` |
+| css | ✓ | | ✓ | `vscode-css-language-server` |
| cue | ✓ | | | `cuelsp` |
| d | ✓ | ✓ | ✓ | `serve-d` |
| dart | ✓ | | ✓ | `dart` |
@@ -97,7 +97,7 @@
| log | ✓ | | | |
| lpf | ✓ | | | |
| lua | ✓ | ✓ | ✓ | `lua-language-server` |
-| make | ✓ | | | |
+| make | ✓ | | ✓ | |
| markdoc | ✓ | | | `markdoc-ls` |
| markdown | ✓ | | | `marksman` |
| markdown.inline | ✓ | | | |
diff --git a/runtime/queries/bash/highlights.scm b/runtime/queries/bash/highlights.scm
index 3f2df638..92d61e8b 100644
--- a/runtime/queries/bash/highlights.scm
+++ b/runtime/queries/bash/highlights.scm
@@ -10,23 +10,37 @@
(variable_name) @variable.other.member
[
+ "if"
+ "then"
+ "else"
+ "elif"
+ "fi"
"case"
+ "in"
+ "esac"
+] @keyword.control.conditional
+
+[
+ "for"
"do"
"done"
- "elif"
- "else"
- "esac"
+ "select"
+ "until"
+ "while"
+] @keyword.control.repeat
+
+[
+ "declare"
+ "typeset"
"export"
- "fi"
- "for"
- "function"
- "if"
- "in"
+ "readonly"
+ "local"
"unset"
- "while"
- "then"
+ "unsetenv"
] @keyword
+"function" @keyword.function
+
(comment) @comment
(function_definition name: (word) @function)
diff --git a/runtime/queries/css/indents.scm b/runtime/queries/css/indents.scm
new file mode 100644
index 00000000..1dfd977d
--- /dev/null
+++ b/runtime/queries/css/indents.scm
@@ -0,0 +1,7 @@
+[
+ (block)
+] @indent
+
+[
+ "}"
+] @outdent
diff --git a/runtime/queries/make/indents.scm b/runtime/queries/make/indents.scm
new file mode 100644
index 00000000..42b2c60e
--- /dev/null
+++ b/runtime/queries/make/indents.scm
@@ -0,0 +1,8 @@
+[
+ (define_directive)
+ (rule)
+] @indent
+
+[
+ "endef"
+] @outdent