| ... | ... | @@ -752,11 +752,11 @@ pub fn firstToken(tree: Ast, node: Node.Index) TokenIndex { |
| 752 | 752 | // Look for a label and inline. |
| 753 | 753 | const main_token = main_tokens[n]; |
| 754 | 754 | var result = main_token; |
| 755 | | if (token_tags[result - 1] == .keyword_inline) { |
| 755 | if (token_tags[result -| 1] == .keyword_inline) { |
| 756 | 756 | result -= 1; |
| 757 | 757 | } |
| 758 | | if (token_tags[result - 1] == .colon) { |
| 759 | | result -= 2; |
| 758 | if (token_tags[result -| 1] == .colon) { |
| 759 | result -|= 2; |
| 760 | 760 | } |
| 761 | 761 | return result - end_offset; |
| 762 | 762 | }, |
| ... | ... | @@ -2246,13 +2246,13 @@ fn fullWhileComponents(tree: Ast, info: full.While.Components) full.While { |
| 2246 | 2246 | .else_token = undefined, |
| 2247 | 2247 | .error_token = null, |
| 2248 | 2248 | }; |
| 2249 | | var tok_i = info.while_token - 1; |
| 2249 | var tok_i = info.while_token -| 1; |
| 2250 | 2250 | if (token_tags[tok_i] == .keyword_inline) { |
| 2251 | 2251 | result.inline_token = tok_i; |
| 2252 | | tok_i -= 1; |
| 2252 | tok_i -|= 1; |
| 2253 | 2253 | } |
| 2254 | 2254 | if (token_tags[tok_i] == .colon and |
| 2255 | | token_tags[tok_i - 1] == .identifier) |
| 2255 | token_tags[tok_i -| 1] == .identifier) |
| 2256 | 2256 | { |
| 2257 | 2257 | result.label_token = tok_i - 1; |
| 2258 | 2258 | } |
| ... | ... | @@ -2280,13 +2280,13 @@ fn fullForComponents(tree: Ast, info: full.For.Components) full.For { |
| 2280 | 2280 | .payload_token = undefined, |
| 2281 | 2281 | .else_token = undefined, |
| 2282 | 2282 | }; |
| 2283 | | var tok_i = info.for_token - 1; |
| 2283 | var tok_i = info.for_token -| 1; |
| 2284 | 2284 | if (token_tags[tok_i] == .keyword_inline) { |
| 2285 | 2285 | result.inline_token = tok_i; |
| 2286 | | tok_i -= 1; |
| 2286 | tok_i -|= 1; |
| 2287 | 2287 | } |
| 2288 | 2288 | if (token_tags[tok_i] == .colon and |
| 2289 | | token_tags[tok_i - 1] == .identifier) |
| 2289 | token_tags[tok_i -| 1] == .identifier) |
| 2290 | 2290 | { |
| 2291 | 2291 | result.label_token = tok_i - 1; |
| 2292 | 2292 | } |