dotfiles

My dotfiles.
Log | Files | Refs | LICENSE

sieve.jsf (1920B)


      1 # JOE syntax highlight file for Sieve
      2 # by Christian Nicolai (http://mycrobase.de)
      3 
      4 =Idle
      5 =Ident
      6 =Comment
      7 =Constant
      8 =String		+Constant
      9 =Number		+Constant
     10 =Boolean	+Constant
     11 =Escape
     12 =StringEscape	+Escape +String
     13 =Keyword
     14 =Statement	+Keyword
     15 =Conditional	+Statement +Keyword
     16 =Bad
     17 =Brace
     18 
     19 =TaggedArgument	+Operator +Keyword
     20 
     21 :idle Idle
     22 	*		idle
     23 	"#"		line_comment	recolor=-1
     24 	"/"		maybe_comment
     25 	"1-9"		decimal		recolor=-1
     26 	"\""		string		recolor=-1
     27 	"[]{}"		brace		recolor=-1
     28 	":"		maybe_tagged_arg
     29 	"a-zA-Z_"	ident		buffer
     30 
     31 :brace Brace
     32 	*		idle		noeat
     33 
     34 :line_comment Comment comment
     35 	*		line_comment
     36 	"BFHNTX"	line_comment	noeat call=comment_todo.comment_todo()
     37 	"\n"		idle
     38 
     39 :maybe_comment Idle
     40 	*		idle		noeat
     41 	"*"		comment		recolor=-2
     42 
     43 :comment Comment comment
     44 	*		comment
     45 	"BFHNTX"	comment		noeat call=comment_todo.comment_todo()
     46 	"*"		maybe_end_comment
     47 
     48 :maybe_end_comment Comment comment
     49 	*		comment		noeat
     50 	"/"		idle
     51 
     52 :decimal Number
     53 	*		idle		noeat
     54 	"0-9"		decimal
     55 	"KMG"		decimal_suffix
     56 
     57 :decimal_suffix Number
     58 	*		idle		noeat
     59 
     60 :string String string
     61 	*		string
     62 	"\""		idle
     63 	"\\"		string_escape	recolor=-1
     64 
     65 :string_escape StringEscape string
     66 	*		string_bad_escape	recolor=-1
     67 	"\\"		string
     68 	"\""		string
     69 
     70 :string_bad_escape Bad
     71 	*		string		noeat
     72 
     73 :maybe_tagged_arg Idle
     74 	*		idle		noeat
     75 	"a-zA-Z_"	tagged_arg	recolor=-2
     76 
     77 :tagged_arg TaggedArgument
     78 	*		idle		noeat
     79 	"a-zA-Z0-9_"	tagged_arg
     80 
     81 :ident Ident
     82 	*		idle		noeat strings
     83 	# control"
     84 	"else"		cond
     85 	"elsif"		cond
     86 	"if"		cond
     87 	"require"	kw
     88 	"stop"		kw
     89 	# commands
     90 	"discard"	cmd
     91 	"fileinto"	cmd
     92 	"keep"		cmd
     93 	"redirect"	cmd
     94 	# tests
     95 	"address"	test
     96 	"allof"		test
     97 	"anyof"		test
     98 	"envelope"	test
     99 	"exists"	test
    100 	"false"		bool
    101 	"header"	test
    102 	"not"		test
    103 	"size"		test
    104 	"true"		bool
    105 done
    106 	"a-zA-Z0-9_"	ident
    107 
    108 :kw Keyword
    109 	*		idle		noeat
    110 
    111 :cmd Statement
    112 	*		idle		noeat
    113 
    114 :cond Conditional
    115 	*		idle		noeat
    116 
    117 :bool Boolean
    118 	*		idle		noeat
    119 
    120 :test Idle
    121 	*		idle		noeat