MCPcopy Create free account
hub / github.com/SpartanJ/eepp / changeDepth

Function changeDepth

src/eepp/ui/doc/textdocument.cpp:3876–3885  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3874}
3875
3876static inline void changeDepth( SyntaxHighlighter* highlighter, int& depth, const TextPosition& pos,
3877 int dir ) {
3878 if ( highlighter ) {
3879 auto type = highlighter->getTokenTypeAt( pos );
3880 if ( type != "comment"_sst && type != "string"_sst )
3881 depth += dir;
3882 } else {
3883 depth += dir;
3884 }
3885}
3886
3887TextPosition TextDocument::getMatchingBracket( TextPosition sp,
3888 const String::StringBaseType& openBracket,

Callers 1

getMatchingBracketMethod · 0.85

Calls 1

getTokenTypeAtMethod · 0.80

Tested by

no test coverage detected