|
1 |
| -(h1) @text.title |
2 |
| -(h2) @text.title |
3 |
| -(h3) @text.title |
4 |
| -(column_heading) @text.title |
| 1 | +(h1) @markup.heading.1 |
| 2 | + |
| 3 | +(h2) @markup.heading.2 |
| 4 | + |
| 5 | +(h3) @markup.heading.3 |
| 6 | + |
| 7 | +(column_heading) @markup.heading.4 |
| 8 | + |
5 | 9 | (column_heading
|
6 |
| - "~" @conceal (#set! conceal "")) |
| 10 | + "~" @markup.heading.4.marker |
| 11 | + (#set! conceal "")) |
| 12 | + |
7 | 13 | (tag
|
8 |
| - "*" @conceal (#set! conceal "") |
9 |
| - text: (_) @label) |
| 14 | + "*" @markup.heading.5.marker |
| 15 | + (#set! conceal "") |
| 16 | + text: (_) @label) |
| 17 | + |
10 | 18 | (taglink
|
11 |
| - "|" @conceal (#set! conceal "") |
12 |
| - text: (_) @text.reference) |
| 19 | + "|" @markup.link |
| 20 | + (#set! conceal "") |
| 21 | + text: (_) @markup.link) |
| 22 | + |
13 | 23 | (optionlink
|
14 |
| - text: (_) @text.reference) |
| 24 | + text: (_) @markup.link) |
| 25 | + |
15 | 26 | (codespan
|
16 |
| - "`" @conceal (#set! conceal "") |
17 |
| - text: (_) @text.literal) |
18 |
| -(codeblock) @text.literal |
| 27 | + "`" @markup.raw |
| 28 | + (#set! conceal "") |
| 29 | + text: (_) @markup.raw) |
| 30 | + |
| 31 | +((codeblock) @markup.raw.block |
| 32 | + (#set! "priority" 90)) |
| 33 | + |
19 | 34 | (codeblock
|
20 |
| - [">" (language)] @conceal (#set! conceal "")) |
| 35 | + [ |
| 36 | + ">" |
| 37 | + (language) |
| 38 | + ] @markup.raw.block |
| 39 | + (#set! conceal "")) |
| 40 | + |
21 | 41 | (block
|
22 |
| - "<" @conceal (#set! conceal "")) |
23 |
| -(argument) @parameter |
| 42 | + "<" @markup.raw.block |
| 43 | + (#set! conceal "")) |
| 44 | + |
| 45 | +(argument) @variable.parameter |
| 46 | + |
24 | 47 | (keycode) @string.special
|
25 |
| -(url) @text.uri |
26 |
| -((note) @text.note |
27 |
| - (#any-of? @text.note "Note:" "NOTE:" "Notes:")) |
28 |
| -((note) @text.warning |
29 |
| - (#any-of? @text.warning "Warning:" "WARNING:")) |
30 |
| -((note) @text.danger |
31 |
| - (#any-of? @text.danger "Deprecated:" "DEPRECATED:")) |
| 48 | + |
| 49 | +(url) @string.special.url |
| 50 | + |
| 51 | +((note) @comment.hint |
| 52 | + (#any-of? @comment.hint "Note:" "NOTE:" "Notes:")) |
| 53 | + |
| 54 | +((note) @comment.warning |
| 55 | + (#any-of? @comment.warning "Warning:" "WARNING:")) |
| 56 | + |
| 57 | +((note) @comment.error |
| 58 | + (#any-of? @comment.error "Deprecated:" "DEPRECATED:")) |
0 commit comments