Skip to content

Commit

Permalink
2.47.0 -> 2.48.0
Browse files Browse the repository at this point in the history
  • Loading branch information
heyglen committed Jul 26, 2020
1 parent 9f020e2 commit d42fbc1
Show file tree
Hide file tree
Showing 9 changed files with 452 additions and 9 deletions.
275 changes: 275 additions & 0 deletions cisco-ios.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,17 @@ variables:
)
\b
)
number_range_1_1000: |
(?xi)
(?:
\b
(?:
(?:1000)|
(?:\d{2,3})|
(?:[1-9])
)
\b
)
number_range_1_10000: |
(?xi)
(?:
Expand Down Expand Up @@ -1613,6 +1624,10 @@ contexts:
1: support.constant
2: support.constant
interface_snmp:
- include: snmp_trap_link_status
- include: snmp_if_monitor

snmp:
- include: snmp_host
- include: snmp_poll
Expand All @@ -1627,6 +1642,22 @@ contexts:
- include: snmp_ip_precedence
- include: snmp_packetsize
- include: snmp_queue_length
- include: snmp_queue_limit
- include: snmp_source_interface
- include: snmp_system_shutdown
- include: snmp_tftp_server_list
- include: snmp_trap_authentication_unknown_context
- include: snmp_trap_authentication_vrf
- include: snmp_trap_link_ietf
- include: snmp_trap_link_switchover
- include: snmp_trap_retry
- include: snmp_trap_timeout
- include: snmp_trap_timeout_old
- include: snmp_trap_source
- include: snmp_trap_authentication
- include: snmp_usm_cisco
- include: snmp_view


snmp_dscp:
- match: |
Expand All @@ -1642,6 +1673,20 @@ contexts:
3: support.constant
4: constant.numeric
snmp_trap_link_status:
- match: |
(?xi)
\s*
(snmp)\s+
(trap)\s+
(link-status)
(\s+permit\s+duplicates)?
captures:
1: support.constant
2: support.constant
3: support.constant
4: support.constant
snmp_packetsize:
- match: |
(?xi)
Expand All @@ -1654,6 +1699,235 @@ contexts:
2: support.constant
3: constant.numeric
snmp_queue_limit:
- match: |
(?xi)
\s*
(snmp-server)\s+
(queue-limit)\s+
(
(?:dispatcher)|
(?:engine)|
(?:notification-host)
)\s+
({{number_range_1_1000}})
captures:
1: support.constant
2: support.constant
3: support.constant
4: constant.numeric
snmp_trap_authentication_vrf:
- match: |
(?xi)
\s*
(snmp-server)\s+
(trap)\s+
(authentication)\s+
(vrf)
captures:
1: support.constant
2: support.constant
3: support.constant
4: support.constant
snmp_trap_link_ietf:
- match: |
(?xi)
\s*
(snmp-server)\s+
(trap)\s+
(link)\s+
(ietf)
captures:
1: support.constant
2: support.constant
3: support.constant
4: support.constant
snmp_trap_link_switchover:
- match: |
(?xi)
\s*
(snmp-server)\s+
(trap)\s+
(link)\s+
(switchover)
captures:
1: support.constant
2: support.constant
3: support.constant
4: support.constant
snmp_trap_retry:
- match: |
(?xi)
\s*
(snmp-server)\s+
(trap)\s+
(retry)\s+
(
\b
(?:
(?:10)|
(?:\d)
)
\b
)
captures:
1: support.constant
2: support.constant
3: support.constant
4: constant.numeric
snmp_trap_timeout_old:
- match: |
(?xi)
\s*
(snmp-server)\s+
(trap-timeout)\s+
({{number_range_1_1000}})
captures:
1: support.constant
2: support.constant
3: constant.numeric
snmp_trap_timeout:
- match: |
(?xi)
\s*
(snmp-server)\s+
(trap)\s+
(timeout)\s+
({{number_range_1_1000}})
captures:
1: support.constant
2: support.constant
3: support.constant
4: constant.numeric
snmp_trap_authentication_unknown_context:
- match: |
(?xi)
\s*
(snmp-server)\s+
(trap)\s+
(authentication)\s+
(unknown-context)
captures:
1: support.constant
2: support.constant
3: support.constant
4: support.constant
snmp_source_interface:
- match: |
(?xi)
\s*
(snmp-server)\s+
(source-interface)\s+
(
(?:traps)|
(?:informs)
)\s+
({{interface_names}})\s*({{interface_numbers}})
captures:
1: support.constant
2: support.constant
3: constant.language
4: entity.other.attribute-name
5: constant.numeric
snmp_trap_source:
- match: |
(?xi)
\s*
(snmp-server)\s+
(trap-source)\s+
({{interface_names}})\s*({{interface_numbers}})
captures:
1: support.constant
2: support.constant
3: entity.other.attribute-name
4: constant.numeric
snmp_trap_authentication:
- match: |
(?xi)
\s*
(snmp-server)\s+
(trap-authentication)
captures:
1: support.constant
2: support.constant
snmp_usm_cisco:
- match: |
(?xi)
\s*
(snmp-server)\s+
(usm)\s+
(cisco)
captures:
1: support.constant
2: support.constant
3: support.constant
snmp_view:
- match: |
(?xi)
\s*
(snmp-server)\s+
(view)\s+
(\S+)\s+
(
(?:[\d\*]+\.)*
[\d\*]+\.?
)
captures:
1: support.constant
2: support.constant
3: string.unquoted
4: constant.numeric
snmp_if_monitor:
- match: |
(?xi)
\s*
(snmp)\s+
(trap)\s+
(if-monitor)
captures:
1: support.constant
2: support.constant
3: support.constant
snmp_tftp_server_list:
- match: |
(?xi)
\s*
(snmp-server)\s+
(tftp-server-list)\s+
(?:
(\d+)|
(\S+)
)
captures:
1: support.constant
2: support.constant
3: constant.numeric
4: string.unquoted
snmp_system_shutdown:
- match: |
(?xi)
\s*
(snmp-server)\s+
(system-shutdown)
captures:
1: support.constant
2: support.constant
snmp_queue_length:
- match: |
(?xi)
Expand Down Expand Up @@ -3799,6 +4073,7 @@ contexts:
- include: interface_ipv6_link_local
- include: ip_dhcp_snooping
- include: storm_control
- include: interface_snmp
- match: |
(?xi)
^\s*
Expand Down
22 changes: 18 additions & 4 deletions cisco-nxos.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -781,16 +781,30 @@ contexts:
^\s*
(tacacs-server)\s+
(?:
(?:(key)\s+(\d+)\s+("\S+"))|
(?:(key)\s+
(?:
(?:(7)\s+(")(\S+)("))|
(?:(5)\s+(")(\S+)("))|
(?:(\d+)\s+("\S+"))
)
)|
(?:(host)\s+({{ip}}))
)
captures:
1: support.constant # tacacs-server
2: support.constant # tacacs-server key
3: constant.numeric # tacacs-server key type
4: string.unquoted # tacacs-server key value
5: support.constant # tacacs-server host
6: constant.numeric # tacacs-server host ip
4: string.quoted
5: string.unquoted.cisco.password.type.7
6: string.quoted
7: constant.numeric
8: string.quoted
9: string.unquoted.cisco.password.type.5
10: string.quoted
11: constant.numeric
12: string.quoted
13: support.constant # tacacs-server host
14: constant.numeric # tacacs-server host ip
hostname:
- match: ^\s*(hostname)\s*(\S+)
Expand Down
Loading

0 comments on commit d42fbc1

Please sign in to comment.