summaryrefslogtreecommitdiffstats
path: root/src/parserintf.h
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2008-01-17 18:56:38 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2008-01-17 18:56:38 (GMT)
commitf000dd870b772ed6bc26ea383a8657301eb5ef17 (patch)
tree05e55417a750c1275c9139b7952de6941db168dd /src/parserintf.h
parentb00ec8923dcf911a38323429f1744048b20a35a7 (diff)
downloadDoxygen-f000dd870b772ed6bc26ea383a8657301eb5ef17.zip
Doxygen-f000dd870b772ed6bc26ea383a8657301eb5ef17.tar.gz
Doxygen-f000dd870b772ed6bc26ea383a8657301eb5ef17.tar.bz2
Release-1.5.4-20080101
Diffstat (limited to 'src/parserintf.h')
-rw-r--r--src/parserintf.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/parserintf.h b/src/parserintf.h
index 941a10f..d5fcf08 100644
--- a/src/parserintf.h
+++ b/src/parserintf.h
@@ -1,8 +1,8 @@
/******************************************************************************
*
- * $Id$
+ *
*
- * Copyright (C) 1997-2007 by Dimitri van Heesch.
+ * Copyright (C) 1997-2008 by Dimitri van Heesch.
*
* Permission to use, copy, modify, and distribute this software and its
* documentation under the terms of the GNU General Public License is hereby
@@ -134,7 +134,12 @@ class ParserManager
ParserInterface *getParser(const char *extension)
{
if (extension==0) return m_defaultParser;
- ParserInterface *intf = m_parsers.find(extension);
+ QCString ext = QCString(extension).lower();
+ ParserInterface *intf = m_parsers.find(ext);
+ if (intf==0 && ext.length()>4)
+ {
+ intf = m_parsers.find(ext.left(4));
+ }
return intf ? intf : m_defaultParser;
}