diff options
author | Blaž Hrastnik | 2021-12-14 15:45:38 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2021-12-14 15:50:11 +0000 |
commit | 49e067874133e12d10ad3ac0c941438e2d7025e7 (patch) | |
tree | 4a43ca34ed7c86d5388c27ecb35be0c091a130fe /runtime | |
parent | 6da2174e14576ff07a0a2a28074fac5276b23d79 (diff) |
Add markdown grammar
Fixes #215
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/queries/markdown/highlights.scm | 35 | ||||
-rw-r--r-- | runtime/queries/markdown/injections.scm | 0 | ||||
-rw-r--r-- | runtime/queries/svelte/highlights.scm | 2 |
3 files changed, 36 insertions, 1 deletions
diff --git a/runtime/queries/markdown/highlights.scm b/runtime/queries/markdown/highlights.scm new file mode 100644 index 00000000..a102719b --- /dev/null +++ b/runtime/queries/markdown/highlights.scm @@ -0,0 +1,35 @@ +[ + (atx_heading) + (setext_heading) +] @markup.heading + +(code_fence_content) @none + +[ + (indented_code_block) + (fenced_code_block) +] @markup.raw.block + +(code_span) @markup.raw.inline + +(emphasis) @markup.italic + +(strong_emphasis) @markup.bold + +(link_destination) @markup.underline.link + +; (link_label) @markup.label ; TODO: rename + +[ + (list_marker_plus) + (list_marker_minus) + (list_marker_star) + (list_marker_dot) + (list_marker_parenthesis) +] @punctuation.special + +[ + (backslash_escape) + (hard_line_break) +] @string.character.escape + diff --git a/runtime/queries/markdown/injections.scm b/runtime/queries/markdown/injections.scm new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/runtime/queries/markdown/injections.scm diff --git a/runtime/queries/svelte/highlights.scm b/runtime/queries/svelte/highlights.scm index 4fcdfd66..f9eef6b5 100644 --- a/runtime/queries/svelte/highlights.scm +++ b/runtime/queries/svelte/highlights.scm @@ -25,7 +25,7 @@ ((attribute (attribute_name) @_attr - (quoted_attribute_value (attribute_value) @markup.undeline.link)) + (quoted_attribute_value (attribute_value) @markup.underline.link)) (#match? @_attr "^(href|src)$")) (tag_name) @tag |