summaryrefslogtreecommitdiff
path: root/rc/tools/python
diff options
context:
space:
mode:
authorGregory Chamberlain <greg@cosine.blue>2021-01-08 10:06:25 +0000
committerGregory Chamberlain <greg@cosine.blue>2021-01-08 10:24:04 +0000
commita49b1c4996fefcf7bf947de269163abf8230d323 (patch)
tree25e9e351484ad5df009281b87320a23056f7d06a /rc/tools/python
parentdf7b33bc7b9da897d1d0127b54ae1e629d2334ff (diff)
Adjust markdown code fences filetype regex
This highlighter (line 50 of markdown.kak) looks for the filetype specified by the author at the top of the code fence, e.g. ``` python print("hello") ``` and highlights the code within using Kakoune's relevant highlighter -- in this case Python. Some flavours of markdown use curly braces and other characters in the first line such as the following: ``` {=python} print("hello") ``` Previously Kakoune recognised `{=python}` but not `{.python}`. The latter is Pandoc's flavour of markdown. This patch adjusts the regex patterns to recognise the dot notation as well.
Diffstat (limited to 'rc/tools/python')
0 files changed, 0 insertions, 0 deletions