| 188 | setFormat(match.capturedStart(5), match.capturedLength(5), bytesFormat); |
| 189 | setFormat(match.capturedStart(6), match.capturedLength(6), mnemonicFormat); |
| 190 | foreach(const HighlightingRule &rule, highlightingRules) { |
| 191 | QRegularExpressionMatchIterator iter = rule.pattern.globalMatch(text, match.capturedEnd()); |
| 192 | while (iter.hasNext()) { |
| 193 | const auto& innerMatch = iter.next(); |
| 194 | if (innerMatch.hasMatch()) { |
| 195 | setFormat(innerMatch.capturedStart(), innerMatch.capturedLength(), rule.format); |
| 196 | } |
| 197 | } |
| 198 | } |
| 199 | } |
| 200 | } |