-
Notifications
You must be signed in to change notification settings - Fork 21
/
markup.scm
31 lines (29 loc) · 1.2 KB
/
markup.scm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
(paragraph [
((expr "*" @bold.start) (expr "*" @bold.end))
(expr "*" @bold.start "*" @bold.end)
((expr "~" @code.start) (expr "~" @code.end))
(expr "~" @code.start "~" @code.end)
((expr "/" @italic.start) (expr "/" @italic.end))
(expr "/" @italic.start "/" @italic.end)
((expr "_" @underline.start) (expr "_" @underline.end))
(expr "_" @underline.start "_" @underline.end)
((expr "=" @verbatim.start) (expr "=" @verbatim.end))
(expr "=" @verbatim.start "=" @verbatim.end)
((expr "+" @strikethrough.start) (expr "+" @strikethrough.end))
(expr "+" @strikethrough.start "+" @strikethrough.end)
])
; headline item
(item [
((expr "*" @bold.start) (expr "*" @bold.end))
(expr "*" @bold.start "*" @bold.end)
((expr "~" @code.start) (expr "~" @code.end))
(expr "~" @code.start "~" @code.end)
((expr "/" @italic.start) (expr "/" @italic.end))
(expr "/" @italic.start "/" @italic.end)
((expr "_" @underline.start) (expr "_" @underline.end))
(expr "_" @underline.start "_" @underline.end)
((expr "=" @verbatim.start) (expr "=" @verbatim.end))
(expr "=" @verbatim.start "=" @verbatim.end)
((expr "+" @strikethrough.start) (expr "+" @strikethrough.end))
(expr "+" @strikethrough.start "+" @strikethrough.end)
])