| 3874 | } |
| 3875 | |
| 3876 | static 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 | |
| 3887 | TextPosition TextDocument::getMatchingBracket( TextPosition sp, |
| 3888 | const String::StringBaseType& openBracket, |
no test coverage detected