(cmdType string, result ExecResult)
| 2176 | } |
| 2177 | i++ |
| 2178 | |
| 2179 | default: |
| 2180 | i++ |
| 2181 | } |
| 2182 | } |
| 2183 | return false |
| 2184 | } |
| 2185 | |
| 2186 | // parseDollarTag extracts a dollar-quote tag starting at position i. |
| 2187 | // Returns the full tag (e.g., "$$" or "$tag$") and true, or ("", false). |
| 2188 | func parseDollarTag(s string, i int) (string, bool) { |
| 2189 | if i >= len(s) || s[i] != '$' { |
| 2190 | return "", false |
| 2191 | } |
| 2192 | j := i + 1 |
| 2193 | // Tag is $[identifier]$ where identifier is [A-Z_0-9] (already uppercased). |
| 2194 | for j < len(s) { |
| 2195 | if s[j] == '$' { |