From 45934e88fa961686c00be1ad272a088f4e7eac0b Mon Sep 17 00:00:00 2001
From: Dimitri van Heesch <dimitri@stack.nl>
Date: Thu, 2 Jan 2014 17:26:28 +0100
Subject: Bug 720691 - Code coloring in case of file without extension

---
 src/parserintf.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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)
       {
-- 
cgit v0.12

