MCPcopy Create free account
hub / github.com/LadybugDB/ladybug / HandleBracketErrors

Function HandleBracketErrors

tools/shell/linenoise.cpp:1654–1663  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1652}
1653
1654static void HandleBracketErrors(const std::vector<uint64_t>& brackets,
1655 std::vector<uint64_t>& errors) {
1656 if (brackets.empty()) {
1657 return;
1658 }
1659 // if there are unclosed brackets remaining not all brackets were closed
1660 for (auto& bracket : brackets) {
1661 errors.push_back(bracket);
1662 }
1663}
1664
1665void addErrorHighlighting(uint64_t render_start, uint64_t render_end,
1666 std::vector<highlightToken>& tokens, struct linenoiseState* l) {

Callers 1

addErrorHighlightingFunction · 0.85

Calls 2

emptyMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected