Changeset View
Changeset View
Standalone View
Standalone View
src/indexer/katehighlightingindexer.cpp
Show First 20 Lines • Show All 530 Lines • ▼ Show 20 Line(s) | 530 | const QStringList textAttributes = QStringList() << QStringLiteral("name") << QStringLiteral("section") << QStringLiteral("mimetype") | |||
---|---|---|---|---|---|
531 | << QStringLiteral("extensions") << QStringLiteral("style") | 531 | << QStringLiteral("extensions") << QStringLiteral("style") | ||
532 | << QStringLiteral("author") << QStringLiteral("license") << QStringLiteral("indenter"); | 532 | << QStringLiteral("author") << QStringLiteral("license") << QStringLiteral("indenter"); | ||
533 | 533 | | |||
534 | // index all given highlightings | 534 | // index all given highlightings | ||
535 | ContextChecker contextChecker; | 535 | ContextChecker contextChecker; | ||
536 | KeywordIncludeChecker keywordIncludeChecker; | 536 | KeywordIncludeChecker keywordIncludeChecker; | ||
537 | QVariantMap hls; | 537 | QVariantMap hls; | ||
538 | int anyError = 0; | 538 | int anyError = 0; | ||
539 | foreach (const QString &hlFilename, hlFilenames) { | 539 | for (const QString &hlFilename : qAsConst(hlFilenames)) { | ||
540 | QFile hlFile(hlFilename); | 540 | QFile hlFile(hlFilename); | ||
541 | if (!hlFile.open(QIODevice::ReadOnly)) { | 541 | if (!hlFile.open(QIODevice::ReadOnly)) { | ||
542 | qWarning ("Failed to open %s", qPrintable(hlFilename)); | 542 | qWarning ("Failed to open %s", qPrintable(hlFilename)); | ||
543 | anyError = 3; | 543 | anyError = 3; | ||
544 | continue; | 544 | continue; | ||
545 | } | 545 | } | ||
546 | 546 | | |||
547 | #ifdef QT_XMLPATTERNS_LIB | 547 | #ifdef QT_XMLPATTERNS_LIB | ||
▲ Show 20 Lines • Show All 125 Lines • Show Last 20 Lines |