[DEV] better parsing python, php and cpp

This commit is contained in:
Edouard DUPIN 2015-08-24 22:03:07 +02:00
commit f6c4f4f9b3
2 changed files with 12 additions and 4 deletions

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<EdnLang version="0.1" lang="Php: pretty home page">
<EdnLang version="0.1" lang="PHP">
<ext>.*\.(php|php3|php4|phtml)</ext>
<pass1><!-- multiline section & parse all file (now) and when modification retrive previous modification -->
<rule name="doxygen multiline">
@ -12,6 +12,10 @@
<regex>/\*(.|\r|\n)*?(\*/|\0)</regex>
<sub>TODO</sub>
</rule>
<rule name="comment multiline ERROR">
<color>SYNTAX_ERROR</color>
<regex>/\*(.|\r|\n)*</regex>
</rule>
<rule name="my comment inline">
<color>comment</color>
<regex>#(.|\\[\\\n])*?$</regex>
@ -43,11 +47,11 @@
</rule>
<rule name="my keyword">
<color>inputFunction</color>
<regex>[\$]_[a-zA-Z_][a-zA-Z0-9_]*</regex>
<regex>\$_[a-zA-Z_][a-zA-Z0-9_]*\b</regex>
</rule>
<rule name="my keyword">
<color>keyword</color>
<regex>[\$][a-zA-Z_][a-zA-Z0-9_]*</regex>
<regex>\$[a-zA-Z_][a-zA-Z0-9_]*\b</regex>
</rule>
<rule name="my type">
<color>type</color>
@ -81,6 +85,10 @@
<color>boolean</color>
<regex>==|&lt;=|&gt;=|!=|&lt;|&gt;|&amp;&amp;|\{|\}</regex>
</rule>
<rule name="simpleQuteTextError">
<color>SYNTAX_ERROR</color>
<regex>&apos;|&quot;</regex>
</rule>
</pass2>
<pass name="doxyparse">
<rule name="knownkey">

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<EdnLang version="0.2" lang="XML">
<ext>.*\.(xml|svg)</ext>
<ext>.*\.(xml|svg|html|tpl)</ext>
<pass1><!-- multiline section & parse all file (now) and when modification retrive previous modification -->
<rule name="Comment">
<color>comment</color>