summaryrefslogtreecommitdiffstats
path: root/src/parserintf.h
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2008-01-17 18:56:38 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2008-01-17 18:56:38 (GMT)
commitf1103ed882b5739e7f16cfd69527bde6d6d96dfa (patch)
tree05e55417a750c1275c9139b7952de6941db168dd /src/parserintf.h
parentc9fcb1845bd7c5080abfee1be4070130bbdd38c2 (diff)
downloadDoxygen-f1103ed882b5739e7f16cfd69527bde6d6d96dfa.zip
Doxygen-f1103ed882b5739e7f16cfd69527bde6d6d96dfa.tar.gz
Doxygen-f1103ed882b5739e7f16cfd69527bde6d6d96dfa.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;
}