I have created syntax highlighting for Euphoria
(http://openeuphoria.org). It has recently (1 year) been open sourced
and work is underway for 4.0. The syntax given will be valid for both
previous and the new 4.0. Here it is:
mp.syntax.euphoria = {
'id' => 'euphoria',
'name' => 'euphoria',
'filenames' => [ '/\.e$/', '/\.eu$/', '/\.ew$/', '/\.ed$/',
'/\.ex$/', '/\.exw$/', '/\.exu$/' ],
'defs' => [
'word1', [
mp.syn_token_list( [
"as", "and", "break", "by", "case", "constant",
"continue", "do", "end", "else", "elsif", "elsifdef",
"exit", "entry", "enum", "export", "for", "function",
"global", "include", "if", "ifdef", "label",
"not", "or", "procedure", "return", "retry", "switch",
"then", "type", "to", "while", "with", "without",
"xor"
] )
],
'word2', [
mp.syn_token_list( [
"atom", "integer", "sequence", "object"
] )
],
'quotes', [
"/\"([^\"\\\\\n]*(\\\\.[^\"\\\\\n]*)*)\"/", /*
double-quoted strings */
"/'([^'\\\\\n]*(\\\\.[^'\\\\\n]*)*)'/", /*
single-quoted strings */
"/\b-?#[0-9A-F]+\b/", /* hex numbers */
"/\b-?[0-9]+\b/", /* numbers */
"/\b[0-9[:upper:]_]+\b/" /* all-caps words */
],
'comments', [ "/--.*$/m" ]
]
};
Jeremy Cowgar
-- To unsubscribe, send mail to mp-unsubscribe_at_lists.triptico.com.Received on Sun Jul 20 2008 - 02:59:22 CEST
This archive was generated by hypermail 2.2.0 : Sun Jul 20 2008 - 03:59:59 CEST