blob: 2f76708db8dd68c031158c1f9de4ce05e85f2fba (
plain) (
blame)
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
31
32
33
34
35
36
37
38
39
40
41
42
43
|
(_) @spell
((tag
(name) @text.todo @nospell
("(" @punctuation.bracket (user) @constant ")" @punctuation.bracket)?
":" @punctuation.delimiter)
(#any-of? @text.todo "TODO" "WIP"))
("text" @text.todo @nospell
(#any-of? @text.todo "TODO" "WIP"))
((tag
(name) @text.note @nospell
("(" @punctuation.bracket (user) @constant ")" @punctuation.bracket)?
":" @punctuation.delimiter)
(#any-of? @text.note "NOTE" "XXX" "INFO"))
("text" @text.note @nospell
(#any-of? @text.note "NOTE" "XXX" "INFO"))
((tag
(name) @text.warning @nospell
("(" @punctuation.bracket (user) @constant ")" @punctuation.bracket)?
":" @punctuation.delimiter)
(#any-of? @text.warning "HACK" "WARNING" "WARN" "FIX"))
("text" @text.warning @nospell
(#any-of? @text.warning "HACK" "WARNING" "WARN" "FIX"))
((tag
(name) @text.danger @nospell
("(" @punctuation.bracket (user) @constant ")" @punctuation.bracket)?
":" @punctuation.delimiter)
(#any-of? @text.danger "FIXME" "BUG" "ERROR"))
("text" @text.danger @nospell
(#any-of? @text.danger "FIXME" "BUG" "ERROR"))
; Issue number (#123)
("text" @number
(#lua-match? @number "^#[0-9]+$"))
((uri) @text.uri @nospell)
|