File: test_variable_assignment_after_module.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 (51 lines) | stat: -rw-r--r-- 1,203 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
---input---
module_name {
    name: "foo",
    // A comment inside a rule
    shared_libs: ["libfoo"],
    stl: "none",
}

// Make sure this works
some_var = 42

---tokens---
'module_name' Name.Function
' '           Text.Whitespace
'{'           Punctuation
'\n    '      Text.Whitespace
'name'        Name
':'           Punctuation
' '           Text.Whitespace
'"foo"'       Literal.String
','           Punctuation
'\n    '      Text.Whitespace
'// A comment inside a rule' Comment.Single
'\n    '      Text.Whitespace
'shared_libs' Name
':'           Punctuation
' '           Text.Whitespace
'['           Punctuation
'"libfoo"'    Literal.String
']'           Punctuation
','           Punctuation
'\n    '      Text.Whitespace
'stl'         Name
':'           Punctuation
' '           Text.Whitespace
'"none"'      Literal.String
','           Punctuation
'\n'          Text.Whitespace

'}'           Punctuation
'\n\n'        Text.Whitespace

'// Make sure this works' Comment.Single
'\n'          Text.Whitespace

'some_var'    Name.Variable
' '           Text.Whitespace
'='           Operator
' '           Text.Whitespace
'42'          Literal.Number.Integer
'\n'          Text.Whitespace