@@ -252,11 +252,6 @@ repository:
252252 captures :
253253 " 1" :
254254 name : " keyword.control.flow.python"
255- codetags :
256- match : " (?:\\ b(NOTE|XXX|HACK|FIXME|BUG|TODO)\\ b)"
257- captures :
258- " 1" :
259- name : " keyword.codetag.notation.python"
260255 " statement-keyword" :
261256 patterns : [
262257 {
@@ -988,24 +983,6 @@ repository:
988983 include : " #fstring-formatting-singe-brace"
989984 }
990985 ]
991- " fstring-formatting-braces" :
992- patterns : [
993- {
994- comment : " empty braces are illegal"
995- match : " ({)(\\ s*?)(})"
996- captures :
997- " 1" :
998- name : " constant.character.format.placeholder.other.python"
999- " 2" :
1000- name : " invalid.illegal.brace.python"
1001- " 3" :
1002- name : " constant.character.format.placeholder.other.python"
1003- }
1004- {
1005- name : " constant.character.escape.python"
1006- match : " ({{|}})"
1007- }
1008- ]
1009986 " fstring-formatting-singe-brace" :
1010987 name : " invalid.illegal.brace.python"
1011988 match : " (}(?!}))"
@@ -1931,6 +1908,24 @@ repository:
19311908 include : " #regexp-base-common"
19321909 }
19331910 ]
1911+ " fstring-formatting-braces" :
1912+ patterns : [
1913+ {
1914+ comment : " empty braces are illegal"
1915+ match : " ({)(\\ s*?)(})"
1916+ captures :
1917+ " 1" :
1918+ name : " constant.character.format.placeholder.other.python"
1919+ " 2" :
1920+ name : " invalid.illegal.brace.python"
1921+ " 3" :
1922+ name : " constant.character.format.placeholder.other.python"
1923+ }
1924+ {
1925+ name : " constant.character.escape.python"
1926+ match : " ({{|}})"
1927+ }
1928+ ]
19341929 " regexp-base-common" :
19351930 patterns : [
19361931 {
@@ -2066,6 +2061,11 @@ repository:
20662061 include : " #regexp-escape-catchall"
20672062 }
20682063 ]
2064+ codetags :
2065+ match : " (?:\\ b(NOTE|XXX|HACK|FIXME|BUG|TODO)\\ b)"
2066+ captures :
2067+ " 1" :
2068+ name : " keyword.codetag.notation.python"
20692069 " comments-base" :
20702070 name : " comment.line.number-sign.python"
20712071 begin : " (\\ #)"
0 commit comments