Skip to content

Commit 9f9cbc3

Browse files
committed
fix typo of command :typeof and support :return
1 parent 8704dcd commit 9f9cbc3

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

MikrotikScript.tmLanguage

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
<array>
8484
<dict>
8585
<key>match</key>
86-
<string>(?x) \b(?&lt;![\-=])( Neighbor| aaa| accept\-filter| access\-list| access| accounting| action| address\-list| address| add| advertise\-filter| advertisements| aggregate| alert| align| area| arp| bandwidth\-server| bandwidth\-test| beep| bfd| bgp\-vpls| bgp| binding| bonding| bridge| cache\-contents| cache| certificate| cisco\-bgp\-vpls| client| config| connect\-list| connections| connection| cookie| cpu| delay| detail| dhcp\-client| dhcp\-relay| dhcp\-server| direct| disable| discovery| dns\-update| e\-mail| edit| enable| environment| eoip| error| ethernet| export| fdb| fetch| file| filter| find| find| firewall| firmware| flush| get| gps| graphing| gre6| gre| group| host| hotspot| identity| inbox| info| inserts| installed\-sa| instance| interfaces| interface| interface| ip\-binding| ip\-scan| ipip| ipsec| ipv6| ip| ip| irq| keys| key| l2tp\-client| l2tp\-server| latency\-distribution| layer7\-protocol| lcd| ldp| lease| leds| len| logging| log| lookup| lsa| mac\-server| mac\-winbox| mangle| manual\-sa| manual\-tx\-power\-table| mesh| mirror| mme| mode\-cfg| monitor| mpls| nat| nbma\-neighbor| nd| neighbor| netwatch| network| note| nstreme\-dual| nstreme| ntp| option| originators| ospf\-router| ospf| ovpn\-client| ovpn\-server| packet\-generator| packet\-template| packet| parse| path\-state| pci| peer| pick| ping| policy| pool| port| ppp\-client| pppoe\-client| pppoe\-server| ppp| pptp\-client| pptp\-server| prefix\-list| prefix| print| profile| proposal| protocol| proxy| put| queue| range| raw| registration\-table| remote\-peers| remove| resolve| resource| resv\-state| rip| routerboard| route| routing| run| scan| scep| scheduler| script| security\-profiles| send| server| service| settings| set| set| sham\-link| shares| share| smb| sms| snapshot| sniffer| socks| sstp\-client| sstp\-server| statistics| stats| status| switch| system| target| terminal| time| toarray| tobool| toid| toip6| toip| tonum| tool| tostr| totime\:typeof| tracking| traffic\-eng| traffic\-flow| traffic\-generator| traffic\-monitor| tunnel\-path| type| uncounted| upgrade| upnp| ups| usb| used| users| user| virtual\-link| vlan| vpls| vpnv4\-route| vrf| vrrp| walled\-garden| watchdog| wds| web\-access| wireless )(?!-)\b
86+
<string>(?x) \b(?&lt;![\-=])( Neighbor| aaa| accept\-filter| access\-list| access| accounting| action| address\-list| address| add| advertise\-filter| advertisements| aggregate| alert| align| area| arp| bandwidth\-server| bandwidth\-test| beep| bfd| bgp\-vpls| bgp| binding| bonding| bridge| cache\-contents| cache| certificate| cisco\-bgp\-vpls| client| config| connect\-list| connections| connection| cookie| cpu| delay| detail| dhcp\-client| dhcp\-relay| dhcp\-server| direct| disable| discovery| dns\-update| e\-mail| edit| enable| environment| eoip| error| ethernet| export| fdb| fetch| file| filter| find| find| firewall| firmware| flush| get| gps| graphing| gre6| gre| group| host| hotspot| identity| inbox| info| inserts| installed\-sa| instance| interfaces| interface| interface| ip\-binding| ip\-scan| ipip| ipsec| ipv6| ip| ip| irq| keys| key| l2tp\-client| l2tp\-server| latency\-distribution| layer7\-protocol| lcd| ldp| lease| leds| len| logging| log| lookup| lsa| mac\-server| mac\-winbox| mangle| manual\-sa| manual\-tx\-power\-table| mesh| mirror| mme| mode\-cfg| monitor| mpls| nat| nbma\-neighbor| nd| neighbor| netwatch| network| note| nstreme\-dual| nstreme| ntp| option| originators| ospf\-router| ospf| ovpn\-client| ovpn\-server| packet\-generator| packet\-template| packet| parse| path\-state| pci| peer| pick| ping| policy| pool| port| ppp\-client| pppoe\-client| pppoe\-server| ppp| pptp\-client| pptp\-server| prefix\-list| prefix| print| profile| proposal| protocol| proxy| put| queue| range| raw| registration\-table| remote\-peers| remove| resolve| resource| resv\-state| rip| routerboard| route| routing| run| scan| scep| scheduler| script| security\-profiles| send| server| service| settings| set| set| sham\-link| shares| share| smb| sms| snapshot| sniffer| socks| sstp\-client| sstp\-server| statistics| stats| status| switch| system| target| terminal| time| toarray| tobool| toid| toip6| toip| tonum| tool| tostr| totime| typeof| tracking| traffic\-eng| traffic\-flow| traffic\-generator| traffic\-monitor| tunnel\-path| type| uncounted| upgrade| upnp| ups| usb| used| users| user| virtual\-link| vlan| vpls| vpnv4\-route| vrf| vrrp| walled\-garden| watchdog| wds| web\-access| wireless| return )(?!-)\b
8787
</string>
8888
<key>name</key>
8989
<string>support.function.mikrotik-script</string>

commands.sublime-completions

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
":pick",
2424
":put",
2525
":resolve",
26+
":return",
2627
":set",
2728
":terminal",
2829
":time",
@@ -33,7 +34,8 @@
3334
":toip",
3435
":tonum",
3536
":tostr",
36-
":totime:typeof",
37+
":totime",
38+
":typeof",
3739
"Neighbor",
3840
"aaa",
3941
"accept-filter",

0 commit comments

Comments
 (0)