Debian Codegraph @

tests/snippets/nix/computed_property_names.txt

raw
1 ---input---
2 let
3 bar = "bar";
4 in {
5 foo.${bar} = 3;
6 foo.${bar + "bar"} = 3;
7 }
8
9 ---tokens---
10 'let' Keyword
11 '\n ' Text
12 'bar' Literal.String.Symbol
13 ' ' Text
14 '=' Operator
15 ' ' Text
16 '"' Literal.String.Double
17 'bar' Literal.String.Double
18 '"' Literal.String.Double
19 ';' Punctuation
20 '\n' Text
21
22 'in' Keyword
23 ' ' Text
24 '{' Punctuation
25 '\n ' Text
26 'foo' Text
27 '.' Operator
28 '${' Literal.String.Interpol
29 'bar' Text
30 '}' Literal.String.Interpol
31 ' ' Text
32 '=' Operator
33 ' ' Text
34 '3' Literal.Number.Integer
35 ';' Punctuation
36 '\n ' Text
37 'foo' Text
38 '.' Operator
39 '${' Literal.String.Interpol
40 'bar' Text
41 ' ' Text
42 '+' Operator
43 ' ' Text
44 '"' Literal.String.Double
45 'bar' Literal.String.Double
46 '"' Literal.String.Double
47 '}' Literal.String.Interpol
48 ' ' Text
49 '=' Operator
50 ' ' Text
51 '3' Literal.Number.Integer
52 ';' Punctuation
53 '\n' Text
54
55 '}' Punctuation
56 '\n' Text