dotfiles

My dotfiles.
git clone git://git.ryanmj.xyz/dotfiles.git
Log | Files | Refs | LICENSE

haml.jsf (1896B)


      1 # JOE syntax highlight file for Haml
      2 # by Christian Nicolai (http://mycrobase.de)
      3 
      4 =Idle
      5 =Comment	green
      6 =Constant	cyan
      7 =Escape		bold cyan
      8 =Bad		bold red
      9 =Brace		magenta
     10 
     11 =Tag		blue
     12 =Class		yellow
     13 =Id		green
     14 =Doctype	bold magenta
     15 =Filter		blue
     16 
     17 :line_start Idle
     18 	*		idle		noeat
     19 	# eat indent
     20 	" "		line_start
     21 	"\\"		escape_first	recolor=-1
     22 	"!"		doctype1
     23 	"%"		tag		recolor=-1
     24 	# implicit <div>
     25 	".#"		after_tag	noeat
     26 	"/"		html_comment	recolor=-1
     27 	":"		filter		recolor=-1
     28 
     29 :escape_first Constant
     30 	*		idle_no_ruby
     31 
     32 :idle Constant
     33 	*		idle_no_ruby
     34 	"\n"		line_start
     35 	"#"		maybe_subst
     36 	"\\"		maybe_subst_escape
     37 	"=~-"		ruby_call	noeat
     38 	"&!"		maybe_esc_ruby_call
     39 
     40 :idle_no_ruby Constant
     41 	*		idle_no_ruby
     42 	"\n"		line_start
     43 	"#"		maybe_subst
     44 	"\\"		maybe_subst_escape
     45 
     46 :doctype1 Idle
     47 	*		idle		recolor=-2
     48 	"="		esc_ruby_call	recolor=-2
     49 	"!"		doctype2
     50 
     51 :doctype2 Idle
     52 	*		idle		recolor=-3
     53 	"!"		doctype3	recolor=-3
     54 
     55 :doctype3 Doctype
     56 	*		doctype3
     57 	"\n"		line_start
     58 
     59 :tag Tag
     60 	*		idle		noeat
     61 	"a-zA-Z0-9_-"	tag
     62 	".#{(/"		after_tag	noeat
     63 
     64 :after_tag Idle
     65 	*		idle		noeat
     66 	"."		class		recolor=-1
     67 	"#"		id		recolor=-1
     68 	"{"		attrA
     69 	"("		attrB
     70 	"/"		tag_close	recolor=-1
     71 
     72 :class Class
     73 	*		after_tag	noeat
     74 	"a-zA-Z0-9_-"	class
     75 
     76 :id Id
     77 	*		after_tag	noeat
     78 	"a-zA-Z0-9_-"	id
     79 
     80 :attrA Idle
     81 	*		attrA
     82 	"}"		after_tag
     83 
     84 :attrB Idle
     85 	*		attrB
     86 	")"		after_tag
     87 
     88 :tag_close Tag
     89 	*		idle		noeat
     90 
     91 :html_comment Comment
     92 	*		html_comment
     93 	"\n"		line_start
     94 
     95 :ruby_call Idle
     96 	*		line_start	call=ruby.ruby(haml)
     97 
     98 :maybe_esc_ruby_call Constant
     99 	*		idle_no_ruby
    100 	"="		esc_ruby_call	recolor=-2
    101 
    102 :esc_ruby_call Idle
    103 	*		line_start	call=ruby.ruby(haml)
    104 	"="		esc_ruby_call2
    105 
    106 :esc_ruby_call2 Idle
    107 	*		line_start	call=ruby.ruby(haml)
    108 
    109 :maybe_subst Constant
    110 	*		idle_no_ruby
    111 	"{"		subst		recolor=-2
    112 
    113 :subst Escape
    114 	*		subst
    115 	"}"		idle_no_ruby
    116 
    117 :maybe_subst_escape Constant
    118 	*		idle_no_ruby
    119 
    120 :filter Filter
    121 	*		idle
    122 	"a-zA-Z0-9_"	filter