Skip to content

Commit

Permalink
feat: add pem language (#5797)
Browse files Browse the repository at this point in the history
  • Loading branch information
mtoohey31 authored Feb 7, 2023
1 parent fce30c0 commit 05c5207
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 @@ -93,6 +93,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 @@ -2134,3 +2134,15 @@ grammar = "xml"
'"' = '"'
"'" = "'"
"<" = ">"

[[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 = "be67a4330a1aa507c7297bc322204f936ec1132c" }
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 05c5207

Please sign in to comment.