|
4 | 4 | "errors": [],
|
5 | 5 | "ast": {
|
6 | 6 | "children": [
|
| 7 | + { |
| 8 | + "children": [ |
| 9 | + { |
| 10 | + "children": [], |
| 11 | + "elementType": "[Bash] Shebang", |
| 12 | + "startOffset": 0, |
| 13 | + "text": "#!/bin/bash\n", |
| 14 | + "textLength": 12 |
| 15 | + } |
| 16 | + ], |
| 17 | + "elementType": "[Bash] shebang element", |
| 18 | + "startOffset": 0, |
| 19 | + "text": "#!/bin/bash\n", |
| 20 | + "textLength": 12 |
| 21 | + }, |
| 22 | + { |
| 23 | + "children": [], |
| 24 | + "elementType": "[Bash] linefeed", |
| 25 | + "startOffset": 12, |
| 26 | + "text": "\n", |
| 27 | + "textLength": 1 |
| 28 | + }, |
7 | 29 | {
|
8 | 30 | "children": [],
|
9 | 31 | "elementType": "[Bash] Comment",
|
10 |
| - "startOffset": 0, |
| 32 | + "startOffset": 13, |
11 | 33 | "text": "# comment 1",
|
12 | 34 | "textLength": 11
|
13 | 35 | },
|
14 | 36 | {
|
15 | 37 | "children": [],
|
16 | 38 | "elementType": "[Bash] linefeed",
|
17 |
| - "startOffset": 11, |
| 39 | + "startOffset": 24, |
18 | 40 | "text": "\n",
|
19 | 41 | "textLength": 1
|
20 | 42 | },
|
21 | 43 | {
|
22 | 44 | "children": [],
|
23 | 45 | "elementType": "[Bash] linefeed",
|
24 |
| - "startOffset": 12, |
| 46 | + "startOffset": 25, |
25 | 47 | "text": "\n",
|
26 | 48 | "textLength": 1
|
27 | 49 | },
|
|
32 | 54 | {
|
33 | 55 | "children": [],
|
34 | 56 | "elementType": "[Bash] assignment_word",
|
35 |
| - "startOffset": 13, |
| 57 | + "startOffset": 26, |
36 | 58 | "text": "a",
|
37 | 59 | "textLength": 1
|
38 | 60 | },
|
39 | 61 | {
|
40 | 62 | "children": [],
|
41 | 63 | "elementType": "[Bash] =",
|
42 |
| - "startOffset": 14, |
| 64 | + "startOffset": 27, |
43 | 65 | "text": "=",
|
44 | 66 | "textLength": 1
|
45 | 67 | },
|
|
48 | 70 | {
|
49 | 71 | "children": [],
|
50 | 72 | "elementType": "[Bash] string begin",
|
51 |
| - "startOffset": 15, |
| 73 | + "startOffset": 28, |
52 | 74 | "text": "\"",
|
53 | 75 | "textLength": 1
|
54 | 76 | },
|
55 | 77 | {
|
56 | 78 | "children": [],
|
57 | 79 | "elementType": "[Bash] string content",
|
58 |
| - "startOffset": 16, |
| 80 | + "startOffset": 29, |
59 | 81 | "text": "# not a comment",
|
60 | 82 | "textLength": 15
|
61 | 83 | },
|
62 | 84 | {
|
63 | 85 | "children": [],
|
64 | 86 | "elementType": "[Bash] string end",
|
65 |
| - "startOffset": 31, |
| 87 | + "startOffset": 44, |
66 | 88 | "text": "\"",
|
67 | 89 | "textLength": 1
|
68 | 90 | }
|
69 | 91 | ],
|
70 | 92 | "elementType": "[Bash] string",
|
71 |
| - "startOffset": 15, |
| 93 | + "startOffset": 28, |
72 | 94 | "text": "\"# not a comment\"",
|
73 | 95 | "textLength": 17
|
74 | 96 | }
|
75 | 97 | ],
|
76 | 98 | "elementType": "var-def-element",
|
77 |
| - "startOffset": 13, |
| 99 | + "startOffset": 26, |
78 | 100 | "text": "a=\"# not a comment\"",
|
79 | 101 | "textLength": 19
|
80 | 102 | }
|
81 | 103 | ],
|
82 | 104 | "elementType": "simple-command",
|
83 |
| - "startOffset": 13, |
| 105 | + "startOffset": 26, |
84 | 106 | "text": "a=\"# not a comment\"",
|
85 | 107 | "textLength": 19
|
86 | 108 | },
|
87 | 109 | {
|
88 | 110 | "children": [],
|
89 | 111 | "elementType": "[Bash] linefeed",
|
90 |
| - "startOffset": 32, |
| 112 | + "startOffset": 45, |
91 | 113 | "text": "\n",
|
92 | 114 | "textLength": 1
|
93 | 115 | },
|
94 | 116 | {
|
95 | 117 | "children": [],
|
96 | 118 | "elementType": "[Bash] linefeed",
|
97 |
| - "startOffset": 33, |
| 119 | + "startOffset": 46, |
98 | 120 | "text": "\n",
|
99 | 121 | "textLength": 1
|
100 | 122 | },
|
|
105 | 127 | {
|
106 | 128 | "children": [],
|
107 | 129 | "elementType": "[Bash] assignment_word",
|
108 |
| - "startOffset": 34, |
| 130 | + "startOffset": 47, |
109 | 131 | "text": "b",
|
110 | 132 | "textLength": 1
|
111 | 133 | },
|
112 | 134 | {
|
113 | 135 | "children": [],
|
114 | 136 | "elementType": "[Bash] =",
|
115 |
| - "startOffset": 35, |
| 137 | + "startOffset": 48, |
116 | 138 | "text": "=",
|
117 | 139 | "textLength": 1
|
118 | 140 | },
|
|
121 | 143 | {
|
122 | 144 | "children": [],
|
123 | 145 | "elementType": "[Bash] string begin",
|
124 |
| - "startOffset": 36, |
| 146 | + "startOffset": 49, |
125 | 147 | "text": "\"",
|
126 | 148 | "textLength": 1
|
127 | 149 | },
|
128 | 150 | {
|
129 | 151 | "children": [],
|
130 | 152 | "elementType": "[Bash] string content",
|
131 |
| - "startOffset": 37, |
| 153 | + "startOffset": 50, |
132 | 154 | "text": "foo bar",
|
133 | 155 | "textLength": 7
|
134 | 156 | },
|
135 | 157 | {
|
136 | 158 | "children": [],
|
137 | 159 | "elementType": "[Bash] string end",
|
138 |
| - "startOffset": 44, |
| 160 | + "startOffset": 57, |
139 | 161 | "text": "\"",
|
140 | 162 | "textLength": 1
|
141 | 163 | }
|
142 | 164 | ],
|
143 | 165 | "elementType": "[Bash] string",
|
144 |
| - "startOffset": 36, |
| 166 | + "startOffset": 49, |
145 | 167 | "text": "\"foo bar\"",
|
146 | 168 | "textLength": 9
|
147 | 169 | }
|
148 | 170 | ],
|
149 | 171 | "elementType": "var-def-element",
|
150 |
| - "startOffset": 34, |
| 172 | + "startOffset": 47, |
151 | 173 | "text": "b=\"foo bar\"",
|
152 | 174 | "textLength": 11
|
153 | 175 | }
|
154 | 176 | ],
|
155 | 177 | "elementType": "simple-command",
|
156 |
| - "startOffset": 34, |
| 178 | + "startOffset": 47, |
157 | 179 | "text": "b=\"foo bar\"",
|
158 | 180 | "textLength": 11
|
159 | 181 | },
|
160 | 182 | {
|
161 | 183 | "children": [],
|
162 | 184 | "elementType": "WHITE_SPACE",
|
163 |
| - "startOffset": 45, |
| 185 | + "startOffset": 58, |
164 | 186 | "text": " ",
|
165 | 187 | "textLength": 1
|
166 | 188 | },
|
167 | 189 | {
|
168 | 190 | "children": [],
|
169 | 191 | "elementType": "[Bash] Comment",
|
170 |
| - "startOffset": 46, |
| 192 | + "startOffset": 59, |
171 | 193 | "text": "# comment 2",
|
172 | 194 | "textLength": 11
|
173 | 195 | },
|
174 | 196 | {
|
175 | 197 | "children": [],
|
176 | 198 | "elementType": "[Bash] linefeed",
|
177 |
| - "startOffset": 57, |
| 199 | + "startOffset": 70, |
178 | 200 | "text": "\n",
|
179 | 201 | "textLength": 1
|
180 | 202 | }
|
181 | 203 | ],
|
182 | 204 | "elementType": "FILE",
|
183 | 205 | "startOffset": 0,
|
184 |
| - "text": "# comment 1\n\na=\"# not a comment\"\n\nb=\"foo bar\" # comment 2\n", |
185 |
| - "textLength": 58 |
| 206 | + "text": "#!/bin/bash\n\n# comment 1\n\na=\"# not a comment\"\n\nb=\"foo bar\" # comment 2\n", |
| 207 | + "textLength": 71 |
186 | 208 | }
|
187 | 209 | }
|
0 commit comments