summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2014-01-02 16:26:28 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2014-01-02 16:26:28 (GMT)
commit45934e88fa961686c00be1ad272a088f4e7eac0b (patch)
tree31b887ddf9712e565cddbba0c07e357ce8f3f600 /src
parentab453a2c5b78a35ec290fee2773faef930be7a87 (diff)
downloadDoxygen-45934e88fa961686c00be1ad272a088f4e7eac0b.zip
Doxygen-45934e88fa961686c00be1ad272a088f4e7eac0b.tar.gz
Doxygen-45934e88fa961686c00be1ad272a088f4e7eac0b.tar.bz2
Bug 720691 - Code coloring in case of file without extension
Diffstat (limited to 'src')
-rw-r--r--src/parserintf.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parserintf.h b/src/parserintf.h
index d474d8f..5378588 100644
--- a/src/parserintf.h
+++ b/src/parserintf.h
@@ -184,8 +184,8 @@ class ParserManager
*/
ParserInterface *getParser(const char *extension)
{
- if (extension==0) return m_defaultParser;
QCString ext = QCString(extension).lower();
+ if (ext.isEmpty()) ext=".no_extension";
ParserInterface *intf = m_extensions.find(ext);
if (intf==0 && ext.length()>4)
{