[DEV] correction of the regex and add some basic test example
This commit is contained in:
0
test/CMakeFile.txt
Normal file
0
test/CMakeFile.txt
Normal file
0
test/Makefile
Normal file
0
test/Makefile
Normal file
0
test/asm.asm
Normal file
0
test/asm.asm
Normal file
0
test/bash.bash
Normal file
0
test/bash.bash
Normal file
0
test/boo.boo
Normal file
0
test/boo.boo
Normal file
0
test/cpp.cpp
Normal file
0
test/cpp.cpp
Normal file
0
test/html.html
Normal file
0
test/html.html
Normal file
0
test/in.in
Normal file
0
test/in.in
Normal file
0
test/java.java
Normal file
0
test/java.java
Normal file
0
test/lua.lua
Normal file
0
test/lua.lua
Normal file
0
test/matlab.m
Normal file
0
test/matlab.m
Normal file
62
test/php.php
Normal file
62
test/php.php
Normal file
@@ -0,0 +1,62 @@
|
||||
<?php
|
||||
|
||||
include_once(SITE_MODULE."plop.php");
|
||||
|
||||
//define('DEFAULT_PLUGIN_PATH','plugin_wiki/');
|
||||
define('ABSPATH',dirname(__FILE__).'/');
|
||||
|
||||
//Tableau contenant la liste des module
|
||||
$module_list = array(array( 'state' => false,
|
||||
'level' => -1,
|
||||
'name' => "",
|
||||
'class' => NULL));
|
||||
// supression de cet <20>l<EFBFBD>ment inutil...
|
||||
array_pop($module_list);
|
||||
|
||||
|
||||
function ShowModuleList(){
|
||||
global $module_list;
|
||||
$output = "";
|
||||
//On liste simplement les module ouvert:
|
||||
$output .= '<div class="matrice"><table cellspacing="1">';
|
||||
$output .= '<tr>';
|
||||
foreach($module_list as $element) {
|
||||
$output .= '</tr>';
|
||||
}
|
||||
$output .= '</table></div>';
|
||||
return $output;
|
||||
}
|
||||
|
||||
function addModule($module_name) {
|
||||
// element global :
|
||||
global $module_list;
|
||||
if (file_exists($module_file)) {
|
||||
//On inclu le module
|
||||
include_once($module_file);
|
||||
} else {
|
||||
// nothing to do ...
|
||||
}
|
||||
}
|
||||
|
||||
class ModuleSite{
|
||||
// description du plugin
|
||||
protected $description;
|
||||
// level d'utilisation du plugin
|
||||
private $useLevel;
|
||||
// version du plugin
|
||||
public $version;
|
||||
|
||||
/*!
|
||||
* @brief Contructeur de base
|
||||
* @param ---
|
||||
* @return ---
|
||||
*/
|
||||
function ModuleSite($_nomDuModule) {
|
||||
$this->description = "---";
|
||||
$this->useLevel = 1024;
|
||||
$this->version = "00.00";
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
?>
|
0
test/python.py
Normal file
0
test/python.py
Normal file
52
test/vertexShader.frag
Normal file
52
test/vertexShader.frag
Normal file
@@ -0,0 +1,52 @@
|
||||
|
||||
/**
|
||||
* Doxygen comment
|
||||
*/
|
||||
/* simple comment */
|
||||
#if 0
|
||||
remove value
|
||||
#else
|
||||
|
||||
#endif
|
||||
|
||||
varying void
|
||||
uniform bool
|
||||
attribute float
|
||||
precision int
|
||||
mediump vec2
|
||||
mediump vec3
|
||||
mediump vec4
|
||||
mediump mat2
|
||||
mediump mat3
|
||||
mediump mat4
|
||||
mediump ivect2
|
||||
mediump ivect3
|
||||
mediump ivect4
|
||||
mediump bvect2
|
||||
mediump bvect3
|
||||
mediump bvect4
|
||||
|
||||
//! inline doxygen comment
|
||||
void emptyFunction() {
|
||||
|
||||
}
|
||||
// inline comment
|
||||
|
||||
void main() {
|
||||
return
|
||||
goto
|
||||
if
|
||||
else
|
||||
case
|
||||
default
|
||||
switch
|
||||
break
|
||||
continue
|
||||
while
|
||||
do
|
||||
for
|
||||
sizeof
|
||||
|
||||
MACRO_VALUE
|
||||
}
|
||||
|
12
test/xml.xml
Normal file
12
test/xml.xml
Normal file
@@ -0,0 +1,12 @@
|
||||
<?declaration attr="plop"/>
|
||||
<node>
|
||||
<node2 attribute="data string">
|
||||
<emptyNode/>
|
||||
<!-- comment -->
|
||||
direct data
|
||||
<!-- multiline comment
|
||||
<inCommentNode/>
|
||||
-->
|
||||
<![CDATA[ raw data ]]>
|
||||
</node2>
|
||||
<node>
|
Reference in New Issue
Block a user