MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / advanceLuaLong

Function advanceLuaLong

app/src/DataModel/Editors/CodeFormatter.cpp:234–243  ·  view source on GitHub ↗

* @brief Advances past characters inside a Lua long string or block comment. */

Source from the content-addressed store, hash-verified

232 * @brief Advances past characters inside a Lua long string or block comment.
233 */
234static void advanceLuaLong(QStringView line, int& i, ScanState& state)
235{
236 int consume = 0;
237 if (tryLuaLongClose(line, i, state.luaLevel, consume)) {
238 state.in = ScanIn::Code;
239 state.luaLevel = 0;
240 i += consume;
241 } else
242 ++i;
243}
244
245/**
246 * @brief Returns the open/close keyword sets for Lua block tokens.

Callers 1

analyzeLineFunction · 0.85

Calls 1

tryLuaLongCloseFunction · 0.85

Tested by

no test coverage detected