Update of /cvsroot/lxr/lxr/lib/LXR/Lang
In directory usw-pr-cvs1:/tmp/cvs-serv19444
Modified Files:
generic.conf
Log Message:
Patched to add support for PHP (thanks to ta...@us...)
Index: generic.conf
===================================================================
RCS file: /cvsroot/lxr/lxr/lib/LXR/Lang/generic.conf,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- generic.conf 2001/08/04 17:39:54 1.3
+++ generic.conf 2001/09/27 15:24:22 1.4
@@ -129,5 +129,31 @@
'string' => ("'", "'"),
'atom' => ('\\\\.', '')],
}
+ 'php' => {
+ 'reserved' => ['and','$argv','$argc','break','case','class',
+ 'continue','default','do','die','echo','else',
+ 'elseif','empty','endfor','endforeach','endif',
+ 'endswitch','endwhile','E_ALL','E_PARSE','E_ERROR',
+ 'E_WARNING','exit','extends','FALSE','for','foreach',
+ 'function','HTTP_COOKIE_VARS','HTTP_GET_VARS',
+ 'HTTP_POST_VARS','HTTP_POST_FILES','HTTP_ENV_VARS',
+ 'HTTP_SERVER_VARS','if','global','list','new','not',
+ 'NULL','or','parent','PHP_OS','PHP_SELF','PHP_VERSION',
+ 'print','return','static','switch','stdClass',
+ 'this','TRUE','var','xor','virtual','while','__FILE__',
+ '__LINE__','__sleep','__wakeup',
+ ],
+
+ 'spec' => ['comment', '/\*', '\*/',
+ 'comment', '//', "\$",
+ 'comment', '#', "\$",
+ 'string', '"', '"',
+ 'string', "'", "'",
+ 'include', 'require', "\$",
+ 'include', 'include', "\$",
+ 'include', 'require_once', "\$",
+ 'include', 'include_once', "\$"
+ ],
+ },
}
}
|