mirror of
https://github.com/mawww/kakoune.git
synced 2025-04-16 15:37:44 +02:00
Merge remote-tracking branch 'eraserhd/Rmd-is-markdown'
This commit is contained in:
commit
922607221b
1 changed files with 2 additions and 2 deletions
|
@ -4,7 +4,7 @@
|
|||
# Detection
|
||||
# ‾‾‾‾‾‾‾‾‾
|
||||
|
||||
hook global BufCreate .*[.](markdown|md|mkd) %{
|
||||
hook global BufCreate .*[.](markdown|md|mkd|Rmd) %{
|
||||
set-option buffer filetype markdown
|
||||
}
|
||||
|
||||
|
@ -96,7 +96,7 @@ define-command markdown-load-languages -params 1 %{
|
|||
execute-keys "%arg{1}1s```\h*\{?[.=]?(\w+)\}?<ret>"
|
||||
evaluate-commands -itersel %{ try %{
|
||||
require-module %val{selection}
|
||||
add-highlighter "shared/markdown/codeblock/%val{selection}" region -match-capture "^(\h*)```\h*(%val{selection}\b|\{[.=]?%val{selection}\})" ^(\h*)``` regions
|
||||
add-highlighter "shared/markdown/codeblock/%val{selection}" region -match-capture "^(\h*)```\h*(%val{selection}\b|\{[.=]?%val{selection}(?:[\h,][^\{\}]*)?\})" ^(\h*)``` regions
|
||||
add-highlighter "shared/markdown/codeblock/%val{selection}/" default-region fill meta
|
||||
add-highlighter "shared/markdown/codeblock/%val{selection}/inner" region \A\h*```[^\n]*\K (?=```) ref %val{selection}
|
||||
add-highlighter "shared/markdown/listblock/codeblock/%val{selection}" region -match-capture "^(\h*)```\h*(%val{selection}\b|\{[.=]?%val{selection}\})" ^(\h*)``` regions
|
||||
|
|
Loading…
Add table
Reference in a new issue