Commit 45934e88 authored by Dimitri van Heesch's avatar Dimitri van Heesch

Bug 720691 - Code coloring in case of file without extension

parent ab453a2c
...@@ -184,8 +184,8 @@ class ParserManager ...@@ -184,8 +184,8 @@ class ParserManager
*/ */
ParserInterface *getParser(const char *extension) ParserInterface *getParser(const char *extension)
{ {
if (extension==0) return m_defaultParser;
QCString ext = QCString(extension).lower(); QCString ext = QCString(extension).lower();
if (ext.isEmpty()) ext=".no_extension";
ParserInterface *intf = m_extensions.find(ext); ParserInterface *intf = m_extensions.find(ext);
if (intf==0 && ext.length()>4) if (intf==0 && ext.length()>4)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment