Index: src/config.l
===================================================================
--- src/config.l	(revision 749)
+++ src/config.l	(working copy)
@@ -1303,6 +1303,7 @@
     filePatternList.append("*.py");
     filePatternList.append("*.f90");
     filePatternList.append("*.f");
+    filePatternList.append("*.for");
     filePatternList.append("*.vhd");
     filePatternList.append("*.vhdl");
     if (portable_fileSystemIsCaseSensitive())
Index: src/config.xml
===================================================================
--- src/config.xml	(revision 749)
+++ src/config.xml	(working copy)
@@ -565,7 +565,7 @@
 blank the following patterns are tested: 
 *.c *.cc *.cxx *.cpp *.c++ *.d *.java *.ii *.ixx *.ipp *.i++ *.inl *.h *.hh 
 *.hxx *.hpp *.h++ *.idl *.odl *.cs *.php *.php3 *.inc *.m *.mm *.dox *.py 
-*.f90 *.f *.vhd *.vhdl
+*.f90 *.f *.for *.vhd *.vhdl
 '>
       <value name='*.c'/>
       <value name='*.cc'/>
@@ -596,6 +596,7 @@
       <value name='*.py'/>
       <value name='*.f90'/>
       <value name='*.f'/>
+      <value name='*.for'/>
       <value name='*.vhd'/>
       <value name='*.vhdl'/>
     </option>
Index: src/configoptions.cpp
===================================================================
--- src/configoptions.cpp	(revision 749)
+++ src/configoptions.cpp	(working copy)
@@ -811,7 +811,7 @@
                  "blank the following patterns are tested:\n"
                  "*.c *.cc *.cxx *.cpp *.c++ *.d *.java *.ii *.ixx *.ipp *.i++ *.inl *.h *.hh\n"
                  "*.hxx *.hpp *.h++ *.idl *.odl *.cs *.php *.php3 *.inc *.m *.mm *.dox *.py\n"
-                 "*.f90 *.f *.vhd *.vhdl"
+                 "*.f90 *.f *.for *.vhd *.vhdl"
                 );
   cl->addValue("*.c");
   cl->addValue("*.cc");
@@ -842,6 +842,7 @@
   cl->addValue("*.py");
   cl->addValue("*.f90");
   cl->addValue("*.f");
+  cl->addValue("*.for");
   cl->addValue("*.vhd");
   cl->addValue("*.vhdl");
   //----
Index: src/util.cpp
===================================================================
--- src/util.cpp	(revision 749)
+++ src/util.cpp	(working copy)
@@ -6519,6 +6519,7 @@
   updateLanguageMapping(".mm",    "objective-c");
   updateLanguageMapping(".py",    "python");
   updateLanguageMapping(".f",     "fortran");
+  updateLanguageMapping(".for",   "fortran");
   updateLanguageMapping(".f90",   "fortran");
   updateLanguageMapping(".vhd",   "vhdl");
   updateLanguageMapping(".vhdl",  "vhdl");
