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

Function markCode

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

* @brief Records a consumed code character (or final character of a word) in the track. */

Source from the content-addressed store, hash-verified

359 * @brief Records a consumed code character (or final character of a word) in the track.
360 */
361static void markCode(TokenTrack& tk, QChar c, bool isWord)
362{
363 if (tk.firstCodeChar.isNull())
364 tk.firstCodeChar = c;
365
366 tk.lastCodeChar = c;
367 tk.lastTokenIsWord = isWord;
368 tk.sawCode = true;
369}
370
371/**
372 * @brief Consumes a Lua identifier, applying block open/close keyword deltas; returns next index.

Callers 3

consumeLuaWordFunction · 0.85
consumeJsWordFunction · 0.85
analyzeLineFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected