fix indent
This commit is contained in:
parent
1a5fade326
commit
c83759bc14
1 changed files with 37 additions and 38 deletions
|
@ -7,15 +7,14 @@ if exists("b:current_syntax")
|
||||||
endif
|
endif
|
||||||
|
|
||||||
setlocal iskeyword+=-
|
setlocal iskeyword+=-
|
||||||
setlocal iskeyword+=.
|
|
||||||
setlocal iskeyword+=_
|
setlocal iskeyword+=_
|
||||||
|
|
||||||
syn match junosDef /\s\u\S\+/
|
syn match junosDef /\s\u\S\+/
|
||||||
|
|
||||||
syn keyword junosCond if else for-each
|
syn keyword junosCond if else for-each
|
||||||
syn keyword junosCond to-zone from-zone match then from to match
|
syn keyword junosCond to-zone from-zone match then from to match
|
||||||
|
|
||||||
syn keyword junosLabel system chassis firewall security rule rule-set pool
|
syn keyword junosLabel system chassis firewall security rule rule-set pool
|
||||||
|
|
||||||
syn keyword junosKeyword class user link-mode port-mode speed address route nat policy vlan-id
|
syn keyword junosKeyword class user link-mode port-mode speed address route nat policy vlan-id
|
||||||
syn keyword junosKeyword source-address destination-address source-port destination-port
|
syn keyword junosKeyword source-address destination-address source-port destination-port
|
||||||
|
@ -39,11 +38,11 @@ syn keyword junosProtocol junos-udp junos-telnet junos-bgp junos-syslog
|
||||||
syn match junosProtocol /\s802\.3ad\s/
|
syn match junosProtocol /\s802\.3ad\s/
|
||||||
syn match junosProtocol /\s802\.1Q\s/
|
syn match junosProtocol /\s802\.1Q\s/
|
||||||
|
|
||||||
syn keyword junosAction any deny permit accept reject discard disable enable
|
syn keyword junosAction any deny permit accept reject discard disable enable
|
||||||
|
|
||||||
syn keyword junosConfigure set delete rename insert request show
|
syn keyword junosConfigure set delete rename insert request show
|
||||||
syn keyword junosConfigure 100m 1g 10g trunk access
|
syn keyword junosConfigure 100m 1g 10g trunk access
|
||||||
syn keyword junosConfigure full-duplex automatic auto-negotiation input output
|
syn keyword junosConfigure full-duplex automatic auto-negotiation input output
|
||||||
|
|
||||||
syn keyword junosFunction id host host-name
|
syn keyword junosFunction id host host-name
|
||||||
syn match junosFunction /[a-z]\+:[-a-z]\+/
|
syn match junosFunction /[a-z]\+:[-a-z]\+/
|
||||||
|
@ -51,40 +50,40 @@ syn match junosFunction /unit\s[0-9]\+/
|
||||||
syn match junosFunction /vlan\.[0-9]\+/
|
syn match junosFunction /vlan\.[0-9]\+/
|
||||||
syn match junosFunction /node[0-9]\+/
|
syn match junosFunction /node[0-9]\+/
|
||||||
|
|
||||||
syn match junosComment "description.*$"
|
syn match junosComment "description.*$"
|
||||||
syn match junosComment "\s*#.*$"
|
syn match junosComment "\s*#.*$"
|
||||||
syn region junosComment contained start='/*' end='*/'
|
syn region junosComment contained start='/*' end='*/'
|
||||||
|
|
||||||
syn match junosString "\"[^"]*\""
|
syn match junosString "\"[^"]*\""
|
||||||
syn match junosVar "\$\<[-_a-zA-Z0-9]*\>"
|
syn match junosVar "\$\<[-_a-zA-Z0-9]*\>"
|
||||||
syn match junosVar /\d\+/
|
syn match junosVar /\d\+/
|
||||||
|
|
||||||
syn keyword junosInterface lo0
|
syn keyword junosInterface lo0
|
||||||
syn match junosInterface "\(xe\|ge\|vcp\)\-[0-9]\+\/[0-9]\+\/[0-9]\+\(
\|\n\|\s\|\.[0-9]\+\)"
|
syn match junosInterface "\(xe\|ge\|vcp\)\-[0-9]\+\/[0-9]\+\/[0-9]\+\(
\|\n\|\s\|\.[0-9]\+\)"
|
||||||
syn match junosInterface "ae[0-9]\+\(
\|\n\|\s\|\.[0-9]\+\)"
|
syn match junosInterface "ae[0-9]\+\(
\|\n\|\s\|\.[0-9]\+\)"
|
||||||
syn match junosInterface "reth[0-9]\+\(
\|\n\|\s\|\.[0-9]\+\)"
|
syn match junosInterface "reth[0-9]\+\(
\|\n\|\s\|\.[0-9]\+\)"
|
||||||
syn match junosInterface "fab[0-9]\+\(
\|\n\|\s\|\.[0-9]\+\)"
|
syn match junosInterface "fab[0-9]\+\(
\|\n\|\s\|\.[0-9]\+\)"
|
||||||
syn match junosInterface "vcp\-[0-9]\+\(
\|\n\|\s\|\.[0-9]\+\)"
|
syn match junosInterface "vcp\-[0-9]\+\(
\|\n\|\s\|\.[0-9]\+\)"
|
||||||
syn match junosInterface "virtual\-chassis"
|
syn match junosInterface "virtual\-chassis"
|
||||||
syn match junosInterface "vlan\sunit\s[0-9]\+"
|
syn match junosInterface "vlan\sunit\s[0-9]\+"
|
||||||
|
|
||||||
" IPv4: complex version
|
" IPv4: complex version
|
||||||
syn match junosIpv4 /\(25[0-5]\|2[0-4]\d\|[01]\?\d\{1,2}\)\(\.\(25[0-5]\|2[0-4]\d\|[01]\?\d\{1,2}\)\)\{3}/
|
syn match junosIpv4 /\(25[0-5]\|2[0-4]\d\|[01]\?\d\{1,2}\)\(\.\(25[0-5]\|2[0-4]\d\|[01]\?\d\{1,2}\)\)\{3}/
|
||||||
syn match junosIpv4 /\(25[0-5]\|2[0-4]\d\|[01]\?\d\{1,2}\)\(\.\(25[0-5]\|2[0-4]\d\|[01]\?\d\{1,2}\)\)\{3}\/[0-9]\{1,2\}/
|
syn match junosIpv4 /\(25[0-5]\|2[0-4]\d\|[01]\?\d\{1,2}\)\(\.\(25[0-5]\|2[0-4]\d\|[01]\?\d\{1,2}\)\)\{3}\/[0-9]\{1,2\}/
|
||||||
|
|
||||||
|
|
||||||
hi link junosKeyword Statement
|
hi link junosKeyword Statement
|
||||||
hi link junosInterface Underlined
|
hi link junosInterface Underlined
|
||||||
hi link junosProtocol Type
|
hi link junosProtocol Type
|
||||||
hi link junosAction Error
|
hi link junosAction Error
|
||||||
hi link junosFunction Function
|
hi link junosFunction Function
|
||||||
hi link junosLabel Identifier
|
hi link junosLabel Identifier
|
||||||
hi link junosCond Type
|
hi link junosCond Type
|
||||||
hi link junosComment Comment
|
hi link junosComment Comment
|
||||||
hi link junosString String
|
hi link junosString String
|
||||||
hi link junosVar Identifier
|
hi link junosVar Identifier
|
||||||
hi link junosConfigure Function
|
hi link junosConfigure Function
|
||||||
hi link junosDef String
|
hi link junosDef String
|
||||||
hi link junosIpv4 Underlined
|
hi link junosIpv4 Underlined
|
||||||
|
|
||||||
let b:current_syntax = "junos"
|
let b:current_syntax = "junos"
|
||||||
|
|
Loading…
Reference in a new issue