From 05c52072653f4c276750e3c651b9c4e030e912d2 Mon Sep 17 00:00:00 2001 From: Matthew Toohey Date: Tue, 7 Feb 2023 18:24:26 -0500 Subject: [PATCH] feat: add pem language (#5797) --- book/src/generated/lang-support.md | 1 + languages.toml | 12 ++++++++++++ runtime/queries/pem/highlights.scm | 7 +++++++ 3 files changed, 20 insertions(+) create mode 100644 runtime/queries/pem/highlights.scm diff --git a/book/src/generated/lang-support.md b/book/src/generated/lang-support.md index 99fe82b33..0ad6dedb6 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` | +| pem | ✓ | | | | | perl | ✓ | ✓ | ✓ | | | php | ✓ | ✓ | ✓ | `intelephense` | | ponylang | ✓ | ✓ | ✓ | | diff --git a/languages.toml b/languages.toml index f407ce349..2fa2c3f5f 100644 --- a/languages.toml +++ b/languages.toml @@ -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" } diff --git a/runtime/queries/pem/highlights.scm b/runtime/queries/pem/highlights.scm new file mode 100644 index 000000000..ee7a40433 --- /dev/null +++ b/runtime/queries/pem/highlights.scm @@ -0,0 +1,7 @@ +(label) @constant + +(preeb) @keyword +(posteb) @keyword + +(base64pad) @string.special.symbol +(laxbase64text) @string