File: strings.txt

package info (click to toggle)
pygments 2.18.0%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 10,184 kB
  • sloc: python: 103,327; javascript: 238; makefile: 142; sh: 84; lisp: 74
file content (57 lines) | stat: -rw-r--r-- 1,156 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
---input---
func test() {
    let world = "world"
    let multi = """
    hello
    \(world)
    !
    """
    return multi
}

---tokens---
'func'        Keyword.Declaration
' '           Text
'test'        Name.Function
'('           Punctuation
')'           Punctuation
' '           Text
'{'           Punctuation
'\n'          Text

'    '        Text
'let'         Keyword.Declaration
' '           Text
'world'       Name.Variable
' '           Text
'='           Punctuation
' '           Text
'"'           Literal.String
'world'       Literal.String
'"'           Literal.String
'\n'          Text

'    '        Text
'let'         Keyword.Declaration
' '           Text
'multi'       Name.Variable
' '           Text
'='           Punctuation
' '           Text
'"""'         Literal.String
'\n    hello\n    ' Literal.String
'\\('         Literal.String.Interpol
'world'       Name
')'           Literal.String.Interpol
'\n    !\n    ' Literal.String
'"""'         Literal.String
'\n'          Text

'    '        Text
'return'      Keyword
' '           Text
'multi'       Name
'\n'          Text

'}'           Punctuation
'\n'          Text