Debian Codegraph @

tests/snippets/python/test_raw_tstring.txt

raw
1 # Tests that the lexer can parse raw f-strings
2
3 ---input---
4 rt"m_\nu = x"
5
6 t"m_\nu = {x}"
7
8 rt"m_{{\nu}} = {x}"
9
10 ---tokens---
11 'rt' Literal.String.Affix
12 '"' Literal.String.Double
13 'm_' Literal.String.Double
14 '\\' Literal.String.Double
15 'nu = x' Literal.String.Double
16 '"' Literal.String.Double
17 '\n' Text.Whitespace
18
19 '\n' Text.Whitespace
20
21 't' Literal.String.Affix
22 '"' Literal.String.Double
23 'm_' Literal.String.Double
24 '\\n' Literal.String.Escape
25 'u = ' Literal.String.Double
26 '{' Literal.String.Interpol
27 'x' Name
28 '}' Literal.String.Interpol
29 '"' Literal.String.Double
30 '\n' Text.Whitespace
31
32 '\n' Text.Whitespace
33
34 'rt' Literal.String.Affix
35 '"' Literal.String.Double
36 'm_' Literal.String.Double
37 '{{' Literal.String.Escape
38 '\\' Literal.String.Double
39 'nu' Literal.String.Double
40 '}}' Literal.String.Escape
41 ' = ' Literal.String.Double
42 '{' Literal.String.Interpol
43 'x' Name
44 '}' Literal.String.Interpol
45 '"' Literal.String.Double
46 '\n' Text.Whitespace