** skip a sequence '[=*[' or ']=*]' and return its number of '='s or ** -1 if sequence is malformed */
| 252 | ** -1 if sequence is malformed |
| 253 | */ |
| 254 | static int skip_sep (LexState *ls) { |
| 255 | int count = 0; |
| 256 | int s = ls->current; |
| 257 | lua_assert(s == '[' || s == ']'); |
| 258 | save_and_next(ls); |
| 259 | while (ls->current == '=') { |
| 260 | save_and_next(ls); |
| 261 | count++; |
| 262 | } |
| 263 | return (ls->current == s) ? count : (-count) - 1; |
| 264 | } |
| 265 | |
| 266 | |
| 267 | static void read_long_string (LexState *ls, SemInfo *seminfo, int sep) { |
no outgoing calls
no test coverage detected