File tree Expand file tree Collapse file tree 3 files changed +40
-0
lines changed Expand file tree Collapse file tree 3 files changed +40
-0
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,24 @@ repository:
35
35
include : " #regexp-base-common"
36
36
}
37
37
]
38
+ " fstring-formatting-braces" :
39
+ patterns : [
40
+ {
41
+ comment : " empty braces are illegal"
42
+ match : " ({)(\\ s*?)(})"
43
+ captures :
44
+ " 1" :
45
+ name : " constant.character.format.placeholder.other.python"
46
+ " 2" :
47
+ name : " invalid.illegal.brace.python"
48
+ " 3" :
49
+ name : " constant.character.format.placeholder.other.python"
50
+ }
51
+ {
52
+ name : " constant.character.escape.python"
53
+ match : " ({{|}})"
54
+ }
55
+ ]
38
56
" regexp-base-common" :
39
57
patterns : [
40
58
{
@@ -410,3 +428,8 @@ repository:
410
428
include : " #regexp-expression"
411
429
}
412
430
]
431
+ codetags :
432
+ match : " (?:\\ b(NOTE|XXX|HACK|FIXME|BUG|TODO)\\ b)"
433
+ captures :
434
+ " 1" :
435
+ name : " keyword.codetag.notation.python"
Original file line number Diff line number Diff line change @@ -12,6 +12,17 @@ repository:
12
12
- match : \{.*?\}
13
13
- include : ' #regexp-base-common'
14
14
15
+ fstring-formatting-braces :
16
+ patterns :
17
+ - comment : empty braces are illegal
18
+ match : ({)(\s*?)(})
19
+ captures :
20
+ ' 1 ' : {name: constant.character.format.placeholder.other.python}
21
+ ' 2 ' : {name: invalid.illegal.brace.python}
22
+ ' 3 ' : {name: constant.character.format.placeholder.other.python}
23
+ - name : constant.character.escape.python
24
+ match : ({{|}})
25
+
15
26
regexp-base-common :
16
27
patterns :
17
28
- name : support.other.match.any.regexp
Original file line number Diff line number Diff line change @@ -167,4 +167,10 @@ repository:
167
167
- include : ' #${prefix}${basename}-expression'
168
168
${nested}
169
169
170
+ codetags :
171
+ match : (?:\b(NOTE|XXX|HACK|FIXME|BUG|TODO)\b)
172
+ captures :
173
+ ' 1 ' : {name: keyword.codetag.notation.python}
174
+
175
+
170
176
...
You can’t perform that action at this time.
0 commit comments