Skip to content

Commit

Permalink
Add tree-sitter-passwd
Browse files Browse the repository at this point in the history
  • Loading branch information
ath3 committed Jan 16, 2023
1 parent 3cf5216 commit d89d3b3
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions book/src/generated/lang-support.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@
| openscad || | | `openscad-lsp` |
| org || | | |
| pascal ||| | `pasls` |
| passwd || | | |
| perl |||| |
| php |||| `intelephense` |
| ponylang |||| |
Expand Down
10 changes: 10 additions & 0 deletions languages.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2108,3 +2108,13 @@ formatter = { command = "dhall" , args = ["format"] }
[[grammar]]
name = "dhall"
source = { git = "https://github.com/jbellerb/tree-sitter-dhall", rev = "affb6ee38d629c9296749767ab832d69bb0d9ea8" }

[[language]]
name = "passwd"
scope = "source.passwd"
file-types = ["passwd"]
roots = []

[[grammar]]
name = "passwd"
source = { git = "https://github.com/ath3/tree-sitter-passwd", rev = "20239395eacdc2e0923a7e5683ad3605aee7b716" }
7 changes: 7 additions & 0 deletions runtime/queries/passwd/highlights.scm
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
(user) @namespace
(auth) @keyword
(uid) @constant
(gid) @constant
(gecos) @string
(home) @variable
(shell) @attribute

0 comments on commit d89d3b3

Please sign in to comment.