Skip to content

Commit

Permalink
feat: add pem language
Browse files Browse the repository at this point in the history
  • Loading branch information
mtoohey31 committed Feb 3, 2023
1 parent 3041236 commit db5a59d
Show file tree
Hide file tree
Showing 3 changed files with 20 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` |
| pem || | | |
| perl |||| |
| php |||| `intelephense` |
| ponylang |||| |
Expand Down
12 changes: 12 additions & 0 deletions languages.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2117,3 +2117,15 @@ roots = []
comment-token = "#"
indent = { tab-width = 4, unit = " " }
grammar = "python"

[[language]]
name = "pem"
scope = "source.pem"
file-types = ["pem", "cert", "crt"]
injection-regex = "pem"
roots = []
grammar = "pem"

[[grammar]]
name = "pem"
source = { git = "https://github.com/mtoohey31/tree-sitter-pem", rev = "6a90b9f43b9d21fd81b85a7a90d8c16e77012971" }
7 changes: 7 additions & 0 deletions runtime/queries/pem/highlights.scm
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
(label) @constant

(preeb) @keyword
(posteb) @keyword

(base64pad) @string.special.symbol
(laxbase64text) @string

0 comments on commit db5a59d

Please sign in to comment.