From: <be...@us...> - 2009-03-09 22:39:05
|
Revision: 2012 http://geshi.svn.sourceforge.net/geshi/?rev=2012&view=rev Author: benbe Date: 2009-03-09 22:38:38 +0000 (Mon, 09 Mar 2009) Log Message: ----------- add: Some more keywords add: Multiline support for Preprocessor Directives and Comment Continuation using C-style \-notation on EOL Modified Paths: -------------- trunk/geshi-1.0.X/src/geshi/glsl.php Modified: trunk/geshi-1.0.X/src/geshi/glsl.php =================================================================== --- trunk/geshi-1.0.X/src/geshi/glsl.php 2009-02-26 18:11:38 UTC (rev 2011) +++ trunk/geshi-1.0.X/src/geshi/glsl.php 2009-03-09 22:38:38 UTC (rev 2012) @@ -41,6 +41,12 @@ 'LANG_NAME' => 'glSlang', 'COMMENT_SINGLE' => array(1 => '//', 2 => '#'), 'COMMENT_MULTI' => array('/*' => '*/'), + 'COMMENT_REGEXP' => array( + //Multiline-continued single-line comments + 1 => '/\/\/(?:\\\\\\\\|\\\\\\n|.)*$/m', + //Multiline-continued preprocessor define + 2 => '/#(?:\\\\\\\\|\\\\\\n|.)*$/m' + ), 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE, 'QUOTEMARKS' => array("'", '"'), 'ESCAPE_CHAR' => '\\', @@ -54,7 +60,7 @@ 'const', 'uniform', 'attribute', 'centroid', 'varying', 'invariant', 'in', 'out', 'inout', 'input', 'output', 'typedef', 'volatile', 'public', 'static', 'extern', 'external', 'packed', - 'inline', 'noinline' + 'inline', 'noinline', 'noperspective', 'flat', 'centroid' ), 3 => array( 'void', 'bool', 'int', 'long', 'short', 'float', 'half', 'fixed', @@ -196,4 +202,4 @@ ) ); -?> +?> \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |