New highlighter for Erlang

This is a first version featuring most of the important syntax elements
as comments, keywords, atoms and variables etc.

Btw fixed prolog parsed to behave like the erlang one when highlighting
atoms and variables.
This commit is contained in:
cn 2011-10-30 20:33:38 +01:00
父節點 bae250abd9
當前提交 b36fa82909
共有 3 個文件被更改,包括 102 次插入2 次删除

95
erlang.jsf Normal file
查看文件

@ -0,0 +1,95 @@
# JOE syntax highlight file for Erlang
=Idle
=Comment green
=Constant cyan
=Escape bold cyan
=Keyword bold
=Bad bold red
=Brace magenta
=Variable fg_310
=Attribute magenta
:idle Idle
* idle
"A-Z" variable noeat
"%" line_comment noeat
"\"" string recolor=-1
"'" quoted_atom recolor=-1
"0-9" decimal recolor=-1
"{[]}" brace recolor=-1
"-" maybe_attribute mark
"a-z" atom buffer
:line_comment Comment
* line_comment
"\n" idle
:variable Variable
* idle noeat
"a-zA-Z" variable
:string Constant
* string
"\"" idle
:decimal Constant
* idle noeat
"0-9" decimal
"." float
:float Constant
* idle noeat
"0-9" float
:brace Brace
* idle noeat
:maybe_attribute Idle
* idle noeat
"a-z" maybe_attribute
"(" attribute recolormark
:attribute Attribute
* idle noeat
:atom Idle
* idle noeat strings
"after" kw
"and" kw
"andalso" kw
"band" kw
"begin" kw
"bnot" kw
"bor" kw
"bsl" kw
"bsr" kw
"bxor" kw
"case" kw
"catch" kw
"cond" kw
"div" kw
"end" kw
"fun" kw
"if" kw
"let" kw
"not" kw
"of" kw
"or" kw
"orelse" kw
"query" kw
"receive" kw
"rem" kw
"try" kw
"when" kw
"xor" kw
done
"a-zA-Z0-9_@" atom
:kw Keyword
* idle noeat
:quoted_atom Idle
* quoted_atom
"'" idle

查看文件

@ -878,3 +878,8 @@
-autoindent
-smarthome
-smartbacks
Erlang
*.erl
-syntax erlang
-autoindent

查看文件

@ -4,11 +4,11 @@
=Comment green
=Constant cyan
=Escape bold cyan
=Variable cyan
=Keyword bold
=Bad bold red
=Brace
=Brace #magenta
=Variable fg_310
=Predicate red
:idle Idle