Description: Make shebang regexes match at the start of the line
 Added patch to match shebangs at the start of 1st line instead
 at the entire 1st line contents. Files with shitches after the
 executable in the shebang are now correctly matched.
Author: Georgios M. Zarkadas <gz@member.fsf.org>
Last-Update: 2012-02-07

--- highlight-2.16.orig/src/cli/main.cpp
+++ highlight-2.16/src/cli/main.cpp
@@ -336,7 +336,8 @@ string HLCmdLineApp::analyzeFile ( const
 	StringMap::iterator it;
 	for ( it=scriptShebangs.begin(); it!=scriptShebangs.end();it++ )
 	{
-		if ( Pattern::matches ( it->first, firstLine ) ) return it->second;
+		pair<string, int> matched = Pattern::findNthMatch ( it->first, firstLine, 0 );
+		if ( matched.second >= 0 ) return it->second;
 	}
 	return "";
 }
