Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
heyglen committed May 24, 2018
1 parent daef935 commit 163021a
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 15 deletions.
16 changes: 9 additions & 7 deletions cisco-ios.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -1566,6 +1566,7 @@ contexts:
(service)\s+
(?:
(?:(password-encryption))|
(?:(nagle))|
(?:(sequence-numbers))|
(?:(tcp-keepalives-in))|
(?:(tcp-keepalives-out))|
Expand All @@ -1582,13 +1583,14 @@ contexts:
captures:
1: support.constant # service
2: support.constant # password-encryption
3: support.constant # sequence-numbers
4: support.constant # tcp-keepalives-in
5: support.constant # tcp-keepalives-out
6: support.constant # timestamps
7: support.constant # timestamps debug | log
8: support.constant # timestamps datetime msec
9: support.constant # timestamps localtime show-timezone
3: support.constant # nagle
4: support.constant # sequence-numbers
5: support.constant # tcp-keepalives-in
6: support.constant # tcp-keepalives-out
7: support.constant # timestamps
8: support.constant # timestamps debug | log
9: support.constant # timestamps datetime msec
10: support.constant # timestamps localtime show-timezone
vlan:
- match: '^\s*(vlan)\s+({{vlan_id}})'
Expand Down
33 changes: 25 additions & 8 deletions cisco-nxos.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ variables:
(?:clock)|
(?:copp)|
(?:errdisable)|
(?:fabricpath)|
(?:feature)|
(?:hardware)|
(?:hostname)|
Expand Down Expand Up @@ -140,14 +141,16 @@ variables:
(?xi)
\s*
(?:
(?:vrf)
(?:vrf)|
(?:{{configure_terminal_ctx_words}})
)
ospfv3_ctx_words: |
(?xi)
\s*
(?:
(?:vrf)|
(?:address-family)
(?:address-family)|
(?:{{configure_terminal_ctx_words}})
)
bgp_ctx_words: |
(?xi)
Expand All @@ -168,7 +171,8 @@ variables:
(?:address-family)|
(?:log-neighbor-changes)|
(?:vrf)|
(?:template)
(?:template)|
(?:{{configure_terminal_ctx_words}})
)
interface_ctx_words: |
(?xi)
Expand Down Expand Up @@ -238,7 +242,8 @@ variables:
(?:\d+)|
(?:version)
)
)
)|
(?:{{configure_terminal_ctx_words}})
)
subnet_mask: |
(?xi)
Expand Down Expand Up @@ -740,11 +745,12 @@ contexts:
7: constant.numeric # destination interface id
logging:
- match: >
- match: |
(?ix)
^\s*(logging\s+server)\s+
({{ip}})\s+(\d+)(?:\s+(use-vrf)\s+(\S+))?(?:\s+(facility)\s+(\S+))?
captures:
^\s*
(logging\s+server)\s+
({{ip}})\s+(\d+)(?:\s+(use-vrf)\s+(\S+))?(?:\s+(facility)\s+(\S+))?
capturees:
1: support.constant
2: constant.numeric
3: constant.numeric
Expand Down Expand Up @@ -1175,6 +1181,15 @@ contexts:
- include: bgp_ipv4_address_family
- include: pop_on_bgp_context

bgp_address_family_settings:
- match: |
(?xi)
(?:
(?:(allowas-in))
)
captures:
1: support.constant # allowas-in
bgp_ipv4_address_family:
- match: ^\s*(address-family)\s+(ipv4)\s+(unicast)
captures:
Expand All @@ -1188,6 +1203,7 @@ contexts:
pop: true
captures:
1: comment.line
- include: bgp_address_family_settings
- include: ipv4_network
- include: bgp_ipv4_neighbor
- include: bgp_peer_policy_settings
Expand All @@ -1206,6 +1222,7 @@ contexts:
pop: true
captures:
1: comment.line
- include: bgp_address_family_settings
- include: ipv6_network
- include: bgp_ipv6_neighbor
- include: bgp_peer_policy_settings
Expand Down
19 changes: 19 additions & 0 deletions messages/2.14.0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# [2.14.0] - 2018-05-09

## Added

- Cisco IOS

- Highlighting

- service nagle

## Fixed

- Cisco NXOS

- Change to config-t on "fabricpath" keyword

- BGP address-family ipv4|6 allowas-in

- Change context bug in BGP and interface context
2 changes: 2 additions & 0 deletions tests/syntax_test_cisco_nxos.cisco-nxos
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ router bgp 1
neighbor 1.2.3.4
no shutdown
address-family ipv4 unicast
allowas-in
network 1.2.3.0/24
network 1.2.3.0/24
neighbor 1.2.3.4
Expand All @@ -199,6 +200,7 @@ router bgp 1
no shutdown
route-map NAME out
address-family ipv6 unicast
allowas-in
neighbor ::
inherit peer NAME
inherit peer-session NAME
Expand Down

0 comments on commit 163021a

Please sign in to comment.