Changeset View
Changeset View
Standalone View
Standalone View
src/indexer/katehighlightingindexer.cpp
Show First 20 Lines • Show All 564 Lines • ▼ Show 20 Line(s) | 564 | } else { | |||
---|---|---|---|---|---|
565 | anyError = 6; | 565 | anyError = 6; | ||
566 | continue; | 566 | continue; | ||
567 | } | 567 | } | ||
568 | 568 | | |||
569 | // map to store hl info | 569 | // map to store hl info | ||
570 | QVariantMap hl; | 570 | QVariantMap hl; | ||
571 | 571 | | |||
572 | // transfer text attributes | 572 | // transfer text attributes | ||
573 | Q_FOREACH (const QString &attribute, textAttributes) { | 573 | for (const QString &attribute : textAttributes) { | ||
574 | hl[attribute] = xml.attributes().value(attribute).toString(); | 574 | hl[attribute] = xml.attributes().value(attribute).toString(); | ||
575 | } | 575 | } | ||
576 | 576 | | |||
577 | // check if extensions have the right format | 577 | // check if extensions have the right format | ||
578 | if (!checkExtensions(hl[QStringLiteral("extensions")].toString())) { | 578 | if (!checkExtensions(hl[QStringLiteral("extensions")].toString())) { | ||
579 | qWarning() << hlFilename << "'extensions' wildcards invalid:" << hl[QStringLiteral("extensions")].toString(); | 579 | qWarning() << hlFilename << "'extensions' wildcards invalid:" << hl[QStringLiteral("extensions")].toString(); | ||
580 | anyError = 23; | 580 | anyError = 23; | ||
581 | } | 581 | } | ||
▲ Show 20 Lines • Show All 91 Lines • Show Last 20 Lines |