* Return true if the command given is a branching command. */
| 2971 | * Return true if the command given is a branching command. |
| 2972 | */ |
| 2973 | static bool |
| 2974 | is_branching_command(const char *cmd) |
| 2975 | { |
| 2976 | return (strcmp(cmd, "if") == 0 || |
| 2977 | strcmp(cmd, "elif") == 0 || |
| 2978 | strcmp(cmd, "else") == 0 || |
| 2979 | strcmp(cmd, "endif") == 0); |
| 2980 | } |
| 2981 | |
| 2982 | /* |
| 2983 | * Prepare to possibly restore query buffer to its current state |