aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorath32023-02-10 17:12:46 +0000
committerGitHub2023-02-10 17:12:46 +0000
commit189c3c2ddc60fb0eb7d15496099d46baec514732 (patch)
tree1d3c177442f2f371761b4818834b7693819cee97
parent8a3ec443f176218384db8c8610bbada9c43a6ea5 (diff)
Add tree-sitter-passwd (#4959)
-rw-r--r--book/src/generated/lang-support.md1
-rw-r--r--languages.toml10
-rw-r--r--runtime/queries/passwd/highlights.scm7
3 files changed, 18 insertions, 0 deletions
diff --git a/book/src/generated/lang-support.md b/book/src/generated/lang-support.md
index 0ad6dedb..368b178f 100644
--- a/book/src/generated/lang-support.md
+++ b/book/src/generated/lang-support.md
@@ -93,6 +93,7 @@
| openscad | ✓ | | | `openscad-lsp` |
| org | ✓ | | | |
| pascal | ✓ | ✓ | | `pasls` |
+| passwd | ✓ | | | |
| pem | ✓ | | | |
| perl | ✓ | ✓ | ✓ | |
| php | ✓ | ✓ | ✓ | `intelephense` |
diff --git a/languages.toml b/languages.toml
index 9ecd1b78..1eb8f3c3 100644
--- a/languages.toml
+++ b/languages.toml
@@ -2146,3 +2146,13 @@ grammar = "pem"
[[grammar]]
name = "pem"
source = { git = "https://github.com/mtoohey31/tree-sitter-pem", rev = "be67a4330a1aa507c7297bc322204f936ec1132c" }
+
+[[language]]
+name = "passwd"
+scope = "source.passwd"
+file-types = ["passwd"]
+roots = []
+
+[[grammar]]
+name = "passwd"
+source = { git = "https://github.com/ath3/tree-sitter-passwd", rev = "20239395eacdc2e0923a7e5683ad3605aee7b716" }
diff --git a/runtime/queries/passwd/highlights.scm b/runtime/queries/passwd/highlights.scm
new file mode 100644
index 00000000..00751750
--- /dev/null
+++ b/runtime/queries/passwd/highlights.scm
@@ -0,0 +1,7 @@
+(user) @namespace
+(auth) @keyword
+(uid) @constant
+(gid) @constant
+(gecos) @string
+(home) @variable
+(shell) @attribute