From 189c3c2ddc60fb0eb7d15496099d46baec514732 Mon Sep 17 00:00:00 2001 From: ath3 <45574139+ath3@users.noreply.github.com> Date: Fri, 10 Feb 2023 18:12:46 +0100 Subject: [PATCH] Add tree-sitter-passwd (#4959) --- book/src/generated/lang-support.md | 1 + languages.toml | 10 ++++++++++ runtime/queries/passwd/highlights.scm | 7 +++++++ 3 files changed, 18 insertions(+) create mode 100644 runtime/queries/passwd/highlights.scm 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