Python strings fold only when they interpolate (an f-string); a plain * literal keeps the long-standing literal path. */
| 392 | /* Python strings fold only when they interpolate (an f-string); a plain |
| 393 | * literal keeps the long-standing literal path. */ |
| 394 | static bool is_interpolated_string(TSNode node) { |
| 395 | uint32_t nc = ts_node_named_child_count(node); |
| 396 | for (uint32_t i = 0; i < nc; i++) { |
| 397 | if (strcmp(ts_node_type(ts_node_named_child(node, i)), "interpolation") == 0) { |
| 398 | return true; |
| 399 | } |
| 400 | } |
| 401 | return false; |
| 402 | } |
| 403 | |
| 404 | static bool is_foldable_arg(TSNode arg) { |
| 405 | const char *k = ts_node_type(arg); |