dotfiles

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

sieve.jsf (1568B)


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