| 1 |
---input--- |
| 2 |
package { |
| 3 |
default_applicable_licenses: ["example"], |
| 4 |
} |
| 5 |
|
| 6 |
module_name { |
| 7 |
name: "foo", |
| 8 |
// A comment inside a rule |
| 9 |
shared_libs: ["libfoo"], |
| 10 |
stl: "none", |
| 11 |
srcs: my_srcs_var, // A comment following a property |
| 12 |
level: 42, |
| 13 |
arch: { |
| 14 |
arm: { |
| 15 |
srcs: ["arm.cpp"], |
| 16 |
}, |
| 17 |
x86: { |
| 18 |
srcs: ["x86.cpp"], |
| 19 |
}, |
| 20 |
}, |
| 21 |
} |
| 22 |
|
| 23 |
---tokens--- |
| 24 |
'package' Name.Function |
| 25 |
' ' Text.Whitespace |
| 26 |
'{' Punctuation |
| 27 |
'\n ' Text.Whitespace |
| 28 |
'default_applicable_licenses' Name |
| 29 |
':' Punctuation |
| 30 |
' ' Text.Whitespace |
| 31 |
'[' Punctuation |
| 32 |
'"example"' Literal.String |
| 33 |
']' Punctuation |
| 34 |
',' Punctuation |
| 35 |
'\n' Text.Whitespace |
| 36 |
|
| 37 |
'}' Punctuation |
| 38 |
'\n\n' Text.Whitespace |
| 39 |
|
| 40 |
'module_name' Name.Function |
| 41 |
' ' Text.Whitespace |
| 42 |
'{' Punctuation |
| 43 |
'\n ' Text.Whitespace |
| 44 |
'name' Name |
| 45 |
':' Punctuation |
| 46 |
' ' Text.Whitespace |
| 47 |
'"foo"' Literal.String |
| 48 |
',' Punctuation |
| 49 |
'\n ' Text.Whitespace |
| 50 |
'// A comment inside a rule' Comment.Single |
| 51 |
'\n ' Text.Whitespace |
| 52 |
'shared_libs' Name |
| 53 |
':' Punctuation |
| 54 |
' ' Text.Whitespace |
| 55 |
'[' Punctuation |
| 56 |
'"libfoo"' Literal.String |
| 57 |
']' Punctuation |
| 58 |
',' Punctuation |
| 59 |
'\n ' Text.Whitespace |
| 60 |
'stl' Name |
| 61 |
':' Punctuation |
| 62 |
' ' Text.Whitespace |
| 63 |
'"none"' Literal.String |
| 64 |
',' Punctuation |
| 65 |
'\n ' Text.Whitespace |
| 66 |
'srcs' Name |
| 67 |
':' Punctuation |
| 68 |
' ' Text.Whitespace |
| 69 |
'my_srcs_var' Name |
| 70 |
',' Punctuation |
| 71 |
' ' Text.Whitespace |
| 72 |
'// A comment following a property' Comment.Single |
| 73 |
'\n ' Text.Whitespace |
| 74 |
'level' Name |
| 75 |
':' Punctuation |
| 76 |
' ' Text.Whitespace |
| 77 |
'42' Literal.Number.Integer |
| 78 |
',' Punctuation |
| 79 |
'\n ' Text.Whitespace |
| 80 |
'arch' Name |
| 81 |
':' Punctuation |
| 82 |
' ' Text.Whitespace |
| 83 |
'{' Punctuation |
| 84 |
'\n ' Text.Whitespace |
| 85 |
'arm' Name |
| 86 |
':' Punctuation |
| 87 |
' ' Text.Whitespace |
| 88 |
'{' Punctuation |
| 89 |
'\n ' Text.Whitespace |
| 90 |
'srcs' Name |
| 91 |
':' Punctuation |
| 92 |
' ' Text.Whitespace |
| 93 |
'[' Punctuation |
| 94 |
'"arm.cpp"' Literal.String |
| 95 |
']' Punctuation |
| 96 |
',' Punctuation |
| 97 |
'\n ' Text.Whitespace |
| 98 |
'}' Punctuation |
| 99 |
',' Punctuation |
| 100 |
'\n ' Text.Whitespace |
| 101 |
'x86' Name |
| 102 |
':' Punctuation |
| 103 |
' ' Text.Whitespace |
| 104 |
'{' Punctuation |
| 105 |
'\n ' Text.Whitespace |
| 106 |
'srcs' Name |
| 107 |
':' Punctuation |
| 108 |
' ' Text.Whitespace |
| 109 |
'[' Punctuation |
| 110 |
'"x86.cpp"' Literal.String |
| 111 |
']' Punctuation |
| 112 |
',' Punctuation |
| 113 |
'\n ' Text.Whitespace |
| 114 |
'}' Punctuation |
| 115 |
',' Punctuation |
| 116 |
'\n ' Text.Whitespace |
| 117 |
'}' Punctuation |
| 118 |
',' Punctuation |
| 119 |
'\n' Text.Whitespace |
| 120 |
|
| 121 |
'}' Punctuation |
| 122 |
'\n' Text.Whitespace |