Changeset View
Changeset View
Standalone View
Standalone View
addons/symbolviewer/plugin_katesymbolviewer.cpp
Context not available. | |||||
318 | /** Get the current highlighting mode */ | 318 | /** Get the current highlighting mode */ | ||
---|---|---|---|---|---|
319 | QString hlModeName = doc->mode(); | 319 | QString hlModeName = doc->mode(); | ||
320 | 320 | | |||
321 | // FIXME Best would be when each parser is own child class of some parser class | ||||
322 | // and each parser is a plugin to the symbol view plugin, then could someone | ||||
323 | // code and share his own parser without the need to re-compile Kate | ||||
321 | if (hlModeName.contains(QLatin1String("C++")) || hlModeName == QLatin1String("C") || hlModeName == QLatin1String("ANSI C89")) | 324 | if (hlModeName.contains(QLatin1String("C++")) || hlModeName == QLatin1String("C") || hlModeName == QLatin1String("ANSI C89")) | ||
322 | parseCppSymbols(); | 325 | parseCppSymbols(); | ||
323 | else if (hlModeName == QLatin1String("PHP (HTML)")) | 326 | else if (hlModeName == QLatin1String("PHP (HTML)")) | ||
Context not available. | |||||
338 | parseXsltSymbols(); | 341 | parseXsltSymbols(); | ||
339 | else if (hlModeName == QLatin1String("Bash")) | 342 | else if (hlModeName == QLatin1String("Bash")) | ||
340 | parseBashSymbols(); | 343 | parseBashSymbols(); | ||
344 | else if (hlModeName == QLatin1String("Normal")) | ||||
345 | parsePlainTextSymbols(); | ||||
341 | else if (hlModeName == QLatin1String("ActionScript 2.0") || | 346 | else if (hlModeName == QLatin1String("ActionScript 2.0") || | ||
342 | hlModeName == QLatin1String("JavaScript") || | 347 | hlModeName == QLatin1String("JavaScript") || | ||
343 | hlModeName == QLatin1String("QML")) | 348 | hlModeName == QLatin1String("QML")) | ||
Context not available. |