added $ syntax and fixed a nicer implementation of attributes

This commit is contained in:
Jonas Rosling 2012-07-22 18:20:12 +01:00
parent 8d1c55bdda
commit 24e6e2976b
1 changed files with 30 additions and 3 deletions

View File

@ -18,6 +18,7 @@
=Variable fg_310 =Variable fg_310
=Attribute fg_505 =Attribute fg_505
=Dunno fg_330 bold
:idle Idle :idle Idle
* idle * idle
@ -28,9 +29,17 @@
"0-9" decimal recolor=-1 "0-9" decimal recolor=-1
"[]" brack recolor=-1 "[]" brack recolor=-1
"{}" brace recolor=-1 "{}" brace recolor=-1
"-" maybe_attribute mark "-" maybe_attribute buffer
"a-z" atom buffer mark noeat "a-z" atom buffer mark noeat
"#" record recolor=-1 "#" record recolor=-1
"$" dunno recolor=-1
:dunno Dunno
* idle
"\\" dunnoesc
:dunnoesc Dunno
* idle
:line_comment Comment :line_comment Comment
* line_comment * line_comment
@ -113,11 +122,16 @@ done
* idle noeat * idle noeat
"0-9" decimal "0-9" decimal
"." float "." float
"#" base
:float Int :float Int
* idle noeat * idle noeat
"0-9" float "0-9" float
:base Int
* idle noeat
"0-9A-F" base
:brace Brace :brace Brace
* idle noeat * idle noeat
@ -125,9 +139,22 @@ done
* idle noeat * idle noeat
:maybe_attribute Idle :maybe_attribute Idle
* idle noeat * idle noeat strings
"-module" attribute
"-export" attribute
"-compile" attribute
"-ifdef" attribute
"-endif" attribute
"-spec" attribute
"-author" attribute
"-copyright" attribute
"-include" attribute
"-include_lib" attribute
"-vsn" attribute
"-behaviour" attribute
"-record" attribute
done
"a-z_" maybe_attribute "a-z_" maybe_attribute
"(." attribute recolormark noeat
:attribute Attribute :attribute Attribute
* idle noeat * idle noeat