diff options
author | Frank Steffahn <frank.steffahn@stu.uni-kiel.de> | 2021-06-17 20:03:03 +0200 |
---|---|---|
committer | David Peter <sharkdp@users.noreply.github.com> | 2021-07-25 15:11:23 +0200 |
commit | 2ea6348b85f96c2b77a06e45ad258f9215fccde2 (patch) | |
tree | 7e28efc8e3901941910fca79f9defc7fa4a1c609 /assets/patches/Markdown.sublime-syntax.patch | |
parent | 6e536ab06d914b57787a0f01d4803eb2ee8ef1c4 (diff) |
Add `rs` identifier for Rust code blocks in Markdown
Diffstat (limited to 'assets/patches/Markdown.sublime-syntax.patch')
-rw-r--r-- | assets/patches/Markdown.sublime-syntax.patch | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/assets/patches/Markdown.sublime-syntax.patch b/assets/patches/Markdown.sublime-syntax.patch index 3bff6dc2..600b6b11 100644 --- a/assets/patches/Markdown.sublime-syntax.patch +++ b/assets/patches/Markdown.sublime-syntax.patch @@ -1,5 +1,5 @@ diff --git syntaxes/01_Packages/Markdown/Markdown.sublime-syntax syntaxes/01_Packages/Markdown/Markdown.sublime-syntax -index 19dc685d..6afd87ae 100644 +index 19dc685d..44440c7f 100644 --- syntaxes/01_Packages/Markdown/Markdown.sublime-syntax +++ syntaxes/01_Packages/Markdown/Markdown.sublime-syntax @@ -24,7 +24,6 @@ variables: @@ -166,3 +166,12 @@ index 19dc685d..6afd87ae 100644 - match: ^\s*$\n? scope: invalid.illegal.non-terminated.bold-italic.markdown pop: true +@@ -1152,7 +1110,7 @@ contexts: + - match: |- + (?x) + {{fenced_code_block_start}} +- ((?i:rust)) ++ ((?i:rust|rs)) + {{fenced_code_block_trailing_infostring_characters}} + captures: + 0: meta.code-fence.definition.begin.rust.markdown-gfm |