Skip to content

Commit 11bcc65

Browse files
committed
Clarify why scopes for 'f' string prefix are ordered the way they are
1 parent d5797f3 commit 11bcc65

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

grammars/src/pyfstring.inc.syntax.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ repository:
55
begin: (\b[fF])([bBuU])?(${marker})
66
end: (\3)${guard}
77
beginCaptures:
8+
# "storage.type.string.python" class should be the first one,
9+
# because Atom, VSCode and GitHub don't understand scopes
10+
# separated by whitespace, and simply use the first one
11+
# of them. Highlighting 'f' as 'storage.type' is more
12+
# important for us than having other scopes.
813
'1': {name: storage.type.string.python
914
string.quoted.${line}.python
1015
string.interpolated.python}

0 commit comments

Comments
 (0)