1
0
mirror of https://github.com/cmur2/joe-syntax.git synced 2024-12-22 02:54:23 +01:00

nicer erlang syntax highlighting

This commit is contained in:
Jonas Rosling 2012-07-02 16:47:30 +02:00
parent 2117fef937
commit 0f23530579
2 changed files with 68 additions and 16 deletions

View File

@ -1,26 +1,32 @@
# JOE syntax highlight file for Erlang # JOE syntax highlight file for Erlang
=Idle =Idle
=Comment green =Comment fg_030
=Constant cyan =String fg_110
=Escape bold cyan =Int fg_033
=Record fg_530
=Recatt fg_530
=Fun fg_115
=Module fg_101
=Keyword bold =Keyword bold
=Bad bold red =Brace fg_555 bold
=Brace magenta =Brack fg_222
=Variable fg_310 =Variable fg_310
=Attribute magenta =Attribute fg_505
:idle Idle :idle Idle
* idle * idle
"A-Z" variable noeat "A-Z_" variable noeat
"%" line_comment noeat "%" line_comment noeat
"\"" string recolor=-1 "\"" string recolor=-1
"'" quoted_atom recolor=-1 "'" quoted_atom recolor=-1
"0-9" decimal recolor=-1 "0-9" decimal recolor=-1
"{[]}" brace recolor=-1 "[]" brack recolor=-1
"{}" brace recolor=-1
"-" maybe_attribute mark "-" maybe_attribute mark
"a-z" atom buffer "a-z" atom buffer mark noeat
"#" record recolor=-1
:line_comment Comment :line_comment Comment
* line_comment * line_comment
@ -28,28 +34,40 @@
:variable Variable :variable Variable
* idle noeat * idle noeat
"a-zA-Z" variable "a-zA-Z0-9_" variable
:string Constant :record Record
* idle noeat
"a-zA-z_" record
"." recatt recolor=-1
:recatt Recatt
* idle noeat
"a-zA-Z_" recatt
:string String
* string * string
"\"" idle "\"" idle
:decimal Constant :decimal Int
* idle noeat * idle noeat
"0-9" decimal "0-9" decimal
"." float "." float
:float Constant :float Int
* idle noeat * idle noeat
"0-9" float "0-9" float
:brace Brace :brace Brace
* idle noeat * idle noeat
:brack Brack
* idle noeat
:maybe_attribute Idle :maybe_attribute Idle
* idle noeat * idle noeat
"a-z" maybe_attribute "a-z_" maybe_attribute
"(" attribute recolormark "(." attribute recolormark noeat
:attribute Attribute :attribute Attribute
* idle noeat * idle noeat
@ -84,9 +102,17 @@
"try" kw "try" kw
"when" kw "when" kw
"xor" kw "xor" kw
done done
"(" function recolormark noeat
":" module recolormark noeat
"a-zA-Z0-9_@" atom "a-zA-Z0-9_@" atom
:module Module
* idle noeat
:function Fun
* idle noeat
:kw Keyword :kw Keyword
* idle noeat * idle noeat

26
ftyperc
View File

@ -895,6 +895,32 @@
*.erl *.erl
-syntax erlang -syntax erlang
-autoindent -autoindent
-tab 4
*.eterm
-syntax erlang
-autoindent
-tab 4
*.app.src
-syntax erlang
-autoindent
-tab 4
*rebar.config
-syntax erlang
-autoindent
-tab 4
*.hrl
-syntax erlang
-autoindent
-tab 4
*.erlang
-syntax erlang
-autoindent
-tab 4
Sieve (ManageSieve) Sieve (ManageSieve)
*.sieve *.sieve