dotfiles

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

iptables.jsf (1970B)


      1 # JOE syntax highlight file for ip(6)tables-save and -restore
      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 
     10 =Table		bold
     11 =Policy		bold blue
     12 =Option		yellow
     13 =Module		blue
     14 
     15 :line_start Idle
     16 	*		rest		noeat
     17 	"#"		line_comment	recolor=-1
     18 	"*"		maybe_table	buffer
     19 	":"		default_policy	recolor=-1
     20 	"C"		maybe_commit	buffer
     21 	"-"		command
     22 
     23 :rest Idle
     24 	*		rest
     25 	"\n"		line_start
     26 
     27 :line_comment Comment
     28 	*		line_comment
     29 	"\n"		line_start
     30 
     31 :maybe_table Idle
     32 	*		bad		noeat strings
     33 	"*filter"	table_name
     34 	"*mangle"	table_name
     35 	"*nat"		table_name
     36 	"*raw"		table_name
     37 done
     38 	"a-z"		maybe_table
     39 
     40 :table_name Table
     41 	*		bad		noeat
     42 	"\n"		line_start
     43 
     44 :default_policy Policy
     45 	*		default_policy
     46 	"\n"		line_start
     47 
     48 :maybe_commit Idle
     49 	*		bad		noeat strings
     50 	"COMMIT"	commit
     51 done
     52 	"A-Z"		maybe_commit
     53 
     54 :commit Table
     55 	*		bad		noeat
     56 	"\n"		line_start
     57 
     58 :command Idle
     59 	*		bad		noeat
     60 	"ADINX"		chain_name_pre
     61 
     62 :chain_name_pre Idle
     63 	*		chain_name	noeat
     64 	" "		chain_name_pre
     65 
     66 :chain_name Option
     67 	*		chain_name
     68 	" "		rule_spec	noeat
     69 	"\n"		line_start
     70 
     71 :rule_spec Idle
     72 	*		rule_option	noeat
     73 	" "		rule_spec
     74 	"\n"		line_start
     75 
     76 :rule_option Idle
     77 	*		rule_option
     78 	" "		rule_spec	noeat
     79 	"\n"		line_start
     80 	"-"		rule_flag
     81 
     82 :rule_flag Idle
     83 	*		rule_option
     84 	"-"		rule_flag_flag
     85 	"iojp"		rule_iojp_pre
     86 	"sd"		rule_sd_pre
     87 	"m"		rule_m_pre
     88 
     89 :rule_flag_flag Idle
     90 	*		rule_flag_flag1	buffer
     91 
     92 :rule_flag_flag1 Idle
     93 	*		rule_option	noeat strings
     94 	"sport"		rule_sd_pre
     95 	"dport"		rule_sd_pre
     96 done
     97 	"a-z-_"		rule_flag_flag1
     98 	
     99 
    100 :rule_iojp_pre Idle
    101 	*		rule_iojp	noeat
    102 	" "		rule_iojp_pre
    103 
    104 :rule_iojp Option
    105 	*		rule_iojp
    106 	" "		rule_option	noeat
    107 	"\n"		line_start
    108 
    109 :rule_sd_pre Idle
    110 	*		rule_sd		noeat
    111 	" "		rule_sd_pre
    112 
    113 :rule_sd Constant
    114 	*		rule_sd
    115 	" "		rule_option	noeat
    116 	"\n"		line_start
    117 
    118 :rule_m_pre Idle
    119 	*		rule_m		noeat
    120 	" "		rule_m_pre
    121 
    122 :rule_m Module
    123 	*		rule_m
    124 	" "		rule_option	noeat
    125 	"\n"		line_start
    126 
    127 :bad Bad
    128 	*		bad
    129 	"\n"		line_start