summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Toohey2023-02-07 23:24:26 +0000
committerGitHub2023-02-07 23:24:26 +0000
commit05c52072653f4c276750e3c651b9c4e030e912d2 (patch)
treea63ca2d722eb4e10ca19f1b68566046ac913e872
parentfce30c0da0eb222bf20091752b599df723ebf559 (diff)
feat: add pem language (#5797)
-rw-r--r--book/src/generated/lang-support.md1
-rw-r--r--languages.toml12
-rw-r--r--runtime/queries/pem/highlights.scm7
3 files changed, 20 insertions, 0 deletions
diff --git a/book/src/generated/lang-support.md b/book/src/generated/lang-support.md
index 99fe82b3..0ad6dedb 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 f407ce34..2fa2c3f5 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 00000000..ee7a4043
--- /dev/null
+++ b/runtime/queries/pem/highlights.scm
@@ -0,0 +1,7 @@
+(label) @constant
+
+(preeb) @keyword
+(posteb) @keyword
+
+(base64pad) @string.special.symbol
+(laxbase64text) @string