Reale & some sources

- Manage the release version of the soft
- add basic ASM and XML
This commit is contained in:
2011-07-20 18:15:45 +02:00
parent 4f6739c0a1
commit 3364d15bac
10 changed files with 256 additions and 27 deletions

View File

@@ -9,8 +9,53 @@
<end>\n</end>
<EscapeChar>\</EscapeChar>
</rule>
<rule name="Assignement">
<color>preprocesseur</color>
<start>( *| [ \t]*)[A-Za-z0-9_+][^ \t]*[ \t]*(\+|:)?=</start>
<end>\n</end>
<EscapeChar>\</EscapeChar>
</rule>
Dependency Line
^( *| [ \t]*)(.DEFAULT|.DELETE_ON_ERROR|.EXPORT_ALL_VARIABLES.IGNORE|.INTERMEDIATE|.PHONY|.POSIX|.PRECIOUS|.SECONDARY|.SILENT|.SUFFIXES)*(([A-Za-z0-9./$(){} _@^<*?%+-]*(\\\n)){,8}[A-Za-z0-9./$(){} _@^<*?%+-]*)::?
</pass1>
<pass2> <!-- Parse on display data ==> nor regenerate every display but every time modification apear -->
</pass2>
</EdnLang>
<!--
Parsing : to add :
$ ==> End of line
^ ==> ???
P1 Comment
#
$
P1 Assignement
^( *| [ \t]*)[A-Za-z0-9_+][^ \t]*[ \t]*(\+|:)?=
$
P1 Dependency Line
^( *| [ \t]*)(.DEFAULT|.DELETE_ON_ERROR|.EXPORT_ALL_VARIABLES.IGNORE|.INTERMEDIATE|.PHONY|.POSIX|.PRECIOUS|.SECONDARY|.SILENT|.SUFFIXES)*(([A-Za-z0-9./$(){} _@^<*?%+-]*(\\\n)){,8}[A-Za-z0-9./$(){} _@^<*?%+-]*)::?
$|;
P1 Macro
\$([A-Za-z0-9_]|\([^)]*\)|\{[^}]*})
P1 Internal Macro
\$([<@*?%]|\$@)
P1 Include
^( *| [ \t]*)include[ \t]
P1 Exports
^( *| [ \t]*)<export|unexport>[ \t]
P2 Conditionals
^( *| [ \t]*)<ifeq|ifneq>[ \t]
P2 Conditionals ifdefs
^( *| [ \t]*)<ifdef|ifndef>[ \t]
P2 Conditional Ends
^( *| [ \t]*)<else|endif>
P2 vpath
^( *| [ \t]*)<vpath>[ \t]
P2 define
^( *| [ \t]*)<define>[ \t]
P2 define Ends
^( *| [ \t]*)<endef>
-->

57
data/lang_asm.xml Normal file
View File

@@ -0,0 +1,57 @@
<?xml version="1.0" encoding="UTF-8"?>
<EdnLang version="0.1" lang="Assembleur">
<ext>.s</ext>
<ext>.S</ext>
<ext>.asm</ext>
<pass1><!-- multiline section & parse all file (now) and when modification retrive previous modification -->
<rule name="my comment multiline doxygen">
<color>commentDoxygen</color>
<start>/\*\*</start>
<end>\*/</end>
</rule>
<rule name="my comment multiline">
<color>comment</color>
<start>/\*</start>
<end>\*/</end>
</rule>
<rule name="my if 0">
<color>preprocesseur</color>
<start>#[ \t]*if 0</start>
<end>#endif|#else</end>
<EscapeChar>\</EscapeChar>
</rule>
<rule name="my preprocesseur">
<color>preprocesseur</color>
<start>#</start>
<end>\n</end>
<EscapeChar>\</EscapeChar>
</rule>
<rule name="my comment doxygen">
<color>commentDoxygen</color>
<start>//!</start>
<end>\n</end>
</rule>
<rule name="my todo comment">
<color>SYNTAX_ERROR</color>
<start>//[ \t]*TODO[ \t]*:</start>
<end>\n</end>
<EscapeChar>\</EscapeChar>
</rule>
<rule name="my comment">
<color>comment</color>
<start>//</start>
<end>\n</end>
<EscapeChar>\</EscapeChar>
</rule>
</pass1>
<pass2> <!-- Parse on display data ==> nor regenerate every display but every time modification apear -->
<rule name="my keyword">
<color>keyword</color>
<start>\@smull|ldrsh|smlal|stmdb|mul|mla|umull|ldr|add|str|mov|subs|bgt|ldmia|stmia|ldmfd|cmp|sub|strd|stmfd|bne|bhi|ldrd|mvn\@</start>
</rule>
<rule name="register list">
<color>type</color>
<start>\@r(10|11|12|[0-9]?)|sp|lp|lr|pc\@</start>
</rule>
</pass2>
</EdnLang>

63
data/lang_xml.xml Normal file
View File

@@ -0,0 +1,63 @@
<?xml version="1.0" encoding="UTF-8"?>
<EdnLang version="0.1" lang="Assembleur">
<ext>.xml</ext>
<pass1><!-- multiline section & parse all file (now) and when modification retrive previous modification -->
<rule name="Comment">
<color>comment</color>
<start>&lt;!\-\-</start>
<end>\-\-&gt;</end>
</rule>
</pass1>
<pass2>
</pass2>
</EdnLang>
<!--
Parsing : to add :
$ ==> End of line
^ ==> ???
P1 Comment
\< !--
--\ >
P1 ignored section
\<!\[\s*IGNORE\s*\[
\]\]\>
P1 declaration
\<\?(?ixml)
\?\>
P1 doctype
(\<!(?idoctype))\s+(\<?(?!(?ixml))[\l_][\w:-]*\>?)
\>
error : \]
p1 processing instruction
\<\?\S+
\?\>
P1 cdata
\<!\[(?icdata)\[
\]\]\>
P1 element declaration
\<!ELEMENT
\>
P1 entity declaration
\<!ENTITY
\>
p1 notation
\<!NOTATION
\>
P1 attribute declaration
\<!ATTLIST
\>
P1 element
(\</?)((?!(?ixml))[\l_][\w:-]*)
/?\>
P1 entity
&((amp|lt|gt|quot|apos)|#x[\da-fA-F]*|[\l_]\w*);
P1 marked section
\<!\[\s*(?:INCLUDE|(%(?!(?ixml))[\l_][\w:-]*;))\s*\[|\]\]\>
P2 internal subset delims
[\[\]>]
-->