diff options
Diffstat (limited to 'src/parserintf.h')
-rw-r--r-- | src/parserintf.h | 11 |
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; } |