summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMDeiml <matthias@deiml.net>2022-01-11 11:50:50 +0100
committerStephan Seitz <stephan.seitz@fau.de>2022-01-11 12:05:56 +0100
commit9fff379c17729d4643c9ed3b2e0494e2a7bbafe8 (patch)
treed0a3140ce8e8185d0cc346acb429e85d8f91a90a
parentb5cdb868c7a20640c9b60aa82afe82ed63f4ebd3 (diff)
Add highlight for markdown delimiters
-rw-r--r--lockfile.json2
-rw-r--r--queries/markdown/highlights.scm8
2 files changed, 7 insertions, 3 deletions
diff --git a/lockfile.json b/lockfile.json
index a2017d93..06f73bcb 100644
--- a/lockfile.json
+++ b/lockfile.json
@@ -156,7 +156,7 @@
"revision": "a4b9187417d6be349ee5fd4b6e77b4172c6827dd"
},
"markdown": {
- "revision": "77b90aec6306df625821e1eba03924f9543ee05c"
+ "revision": "330ecab87a3e3a7211ac69bbadc19eabecdb1cca"
},
"nix": {
"revision": "6d6aaa50793b8265b6a8b6628577a0083d3b923d"
diff --git a/queries/markdown/highlights.scm b/queries/markdown/highlights.scm
index 666a085a..a9f268a8 100644
--- a/queries/markdown/highlights.scm
+++ b/queries/markdown/highlights.scm
@@ -16,12 +16,16 @@
[
(code_span)
(link_title)
+ (indented_code_block)
+ (fenced_code_block)
] @text.literal
[
- (indented_code_block)
- (fenced_code_block)
+ (emphasis_delimiter)
+ (code_span_delimiter)
+ (fenced_code_block_delimiter)
] @punctuation.delimiter
+
(code_fence_content) @none
(emphasis) @text.emphasis