mirror of
https://github.com/cmur2/joe-syntax.git
synced 2024-12-22 12:54:23 +01:00
Add ip(6)tables syntax highlighter for iptables-save output
This commit is contained in:
parent
ed8da20dbc
commit
b92c346681
11
ftyperc
11
ftyperc
@ -932,3 +932,14 @@
|
|||||||
-syntax puppet
|
-syntax puppet
|
||||||
-pound_comment
|
-pound_comment
|
||||||
-autoindent
|
-autoindent
|
||||||
|
|
||||||
|
ip(6)tables
|
||||||
|
*
|
||||||
|
+# Generated by iptables-save
|
||||||
|
-syntax iptables
|
||||||
|
-pound_comment
|
||||||
|
|
||||||
|
*
|
||||||
|
+# Generated by ip6tables-save
|
||||||
|
-syntax iptables
|
||||||
|
-pound_comment
|
||||||
|
56
iptables.jsf
Normal file
56
iptables.jsf
Normal file
@ -0,0 +1,56 @@
|
|||||||
|
# JOE syntax highlight file for ip(6)tables-save and -restore
|
||||||
|
|
||||||
|
=Idle
|
||||||
|
=Comment green
|
||||||
|
=Constant cyan
|
||||||
|
=Escape bold cyan
|
||||||
|
=Bad bold red
|
||||||
|
|
||||||
|
=Table bold blue
|
||||||
|
=Policy fg_310 # brown
|
||||||
|
|
||||||
|
:line_start Idle
|
||||||
|
* rest noeat
|
||||||
|
"#" line_comment recolor=-1
|
||||||
|
"*" maybe_table buffer
|
||||||
|
":" default_policy recolor=-1
|
||||||
|
"C" maybe_commit buffer
|
||||||
|
|
||||||
|
:rest Idle
|
||||||
|
* rest
|
||||||
|
"\n" line_start
|
||||||
|
|
||||||
|
:line_comment Comment
|
||||||
|
* line_comment
|
||||||
|
"\n" line_start
|
||||||
|
|
||||||
|
:maybe_table Idle
|
||||||
|
* bad noeat strings
|
||||||
|
"*filter" table_name
|
||||||
|
"*mangle" table_name
|
||||||
|
"*nat" table_name
|
||||||
|
"*raw" table_name
|
||||||
|
done
|
||||||
|
"a-z" maybe_table
|
||||||
|
|
||||||
|
:table_name Table
|
||||||
|
* bad noeat
|
||||||
|
"\n" line_start
|
||||||
|
|
||||||
|
:default_policy Policy
|
||||||
|
* default_policy
|
||||||
|
"\n" line_start
|
||||||
|
|
||||||
|
:maybe_commit Idle
|
||||||
|
* bad noeat strings
|
||||||
|
"COMMIT" commit
|
||||||
|
done
|
||||||
|
"A-Z" maybe_commit
|
||||||
|
|
||||||
|
:commit Table
|
||||||
|
* bad noeat
|
||||||
|
"\n" line_start
|
||||||
|
|
||||||
|
:bad Bad
|
||||||
|
* bad
|
||||||
|
"\n" line_start
|
Loading…
Reference in New Issue
Block a user