├── .gitignore
├── .res
├── QR
│ ├── github_qr.png
│ ├── linkedin_qr.png
│ ├── marketplace_qr.png
│ └── twitter_qr.png
├── discord_24.png
├── github_24.png
├── gitter_24.png
├── linkedin_24.png
├── telegram_24.png
└── twitter_24.png
├── .vscode
├── launch.json
└── settings.json
├── .vscodeignore
├── .vsixmanifest
├── CHANGELOG.md
├── LICENSE
├── README.md
├── images
├── example.gif
├── example.png
├── icon.png
└── icon_ua.png
├── language-configuration.json
├── package.json
├── package.nls.json
├── snippets
└── rosScript.json
└── syntaxes
└── rosScript.tmLanguage.json
/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | *.vsix
--------------------------------------------------------------------------------
/.res/QR/github_qr.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/devMikeUA/vscode_mikrotik_routeros_script/aaf19c0581ffe238850eb42aefe0ce67bb6ed9d8/.res/QR/github_qr.png
--------------------------------------------------------------------------------
/.res/QR/linkedin_qr.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/devMikeUA/vscode_mikrotik_routeros_script/aaf19c0581ffe238850eb42aefe0ce67bb6ed9d8/.res/QR/linkedin_qr.png
--------------------------------------------------------------------------------
/.res/QR/marketplace_qr.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/devMikeUA/vscode_mikrotik_routeros_script/aaf19c0581ffe238850eb42aefe0ce67bb6ed9d8/.res/QR/marketplace_qr.png
--------------------------------------------------------------------------------
/.res/QR/twitter_qr.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/devMikeUA/vscode_mikrotik_routeros_script/aaf19c0581ffe238850eb42aefe0ce67bb6ed9d8/.res/QR/twitter_qr.png
--------------------------------------------------------------------------------
/.res/discord_24.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/devMikeUA/vscode_mikrotik_routeros_script/aaf19c0581ffe238850eb42aefe0ce67bb6ed9d8/.res/discord_24.png
--------------------------------------------------------------------------------
/.res/github_24.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/devMikeUA/vscode_mikrotik_routeros_script/aaf19c0581ffe238850eb42aefe0ce67bb6ed9d8/.res/github_24.png
--------------------------------------------------------------------------------
/.res/gitter_24.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/devMikeUA/vscode_mikrotik_routeros_script/aaf19c0581ffe238850eb42aefe0ce67bb6ed9d8/.res/gitter_24.png
--------------------------------------------------------------------------------
/.res/linkedin_24.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/devMikeUA/vscode_mikrotik_routeros_script/aaf19c0581ffe238850eb42aefe0ce67bb6ed9d8/.res/linkedin_24.png
--------------------------------------------------------------------------------
/.res/telegram_24.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/devMikeUA/vscode_mikrotik_routeros_script/aaf19c0581ffe238850eb42aefe0ce67bb6ed9d8/.res/telegram_24.png
--------------------------------------------------------------------------------
/.res/twitter_24.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/devMikeUA/vscode_mikrotik_routeros_script/aaf19c0581ffe238850eb42aefe0ce67bb6ed9d8/.res/twitter_24.png
--------------------------------------------------------------------------------
/.vscode/launch.json:
--------------------------------------------------------------------------------
1 | // A launch configuration that launches the extension inside a new window
2 | // Use IntelliSense to learn about possible attributes.
3 | // Hover to view descriptions of existing attributes.
4 | // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5 | {
6 | "version": "0.2.0",
7 | "configurations": [
8 | {
9 | "name": "Extension",
10 | "type": "extensionHost",
11 | "request": "launch",
12 | "runtimeExecutable": "${execPath}",
13 | "args": [
14 | "--extensionDevelopmentPath=${workspaceFolder}"
15 | ]
16 | }
17 | ]
18 | }
--------------------------------------------------------------------------------
/.vscode/settings.json:
--------------------------------------------------------------------------------
1 | {
2 | "editor.tokenColorCustomizations": {
3 | "textMateRules": [
4 | {
5 | "scope": "ipv4.rosScript",
6 | "settings": {
7 | "foreground": "#cc8b00"
8 | }
9 | }
10 | ]
11 | }
12 | }
--------------------------------------------------------------------------------
/.vscodeignore:
--------------------------------------------------------------------------------
1 | .res
2 | .gitignore
3 | vsc-extension-quickstart.md
4 |
--------------------------------------------------------------------------------
/.vsixmanifest:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Mikrotik RouterOS script.
6 | Provides snippets, syntax highlighting, bracket matching in Mikrotik RouterOS script files.
7 | Mikrotik,RouterOS,MikrotikOS,mros,mross,mrosscript,rosscript,ros,rsc, __ext_.rsc
8 | Programming Languages,Snippets,Other
9 | Public
10 |
11 |
12 |
13 |
14 |
15 |
16 | extension/images/icon.png
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
--------------------------------------------------------------------------------
/CHANGELOG.md:
--------------------------------------------------------------------------------
1 | # Change Log
2 |
3 | ### 2022.9.2
4 | - Add some RouterOS 7 syntax highlighting.
5 | - Fix some syntax highlighting.
6 | To be continue ;)
7 |
8 | ### 2018.8.2
9 | - Modify snippet (add new).
10 |
11 | ### 2018.8.1
12 | - Fix some syntax highlighting.
13 |
14 | ### 2018.8.0
15 | - First release.
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2018 Mikhail Korzhov
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Mikrotik RouterOS script
2 | [][_1]
3 | [][_1]
4 | [][_2]
5 | [][_3]
6 | [][_4]
7 |
8 | [_1]:https://marketplace.visualstudio.com/items?itemName=devMike.mikrotik-routeros-script
9 | [_2]:https://gitter.im/Mikrotik-RouterOS-script/LetsTalk?utm_source=share-link&utm_medium=link&utm_campaign=share-link
10 | [_3]:https://discordapp.com/channels/488241725085712385/488241725635035139
11 | [_4]:https://t.me/rosscript
12 |
13 | ### Support me:
14 | #### Hi all. I live in Ukraine and in these difficult times, you can support our project.
15 |
16 | - UAH [Donatello](https://donatello.to/devMikeUA)
17 | - USD EUR (PayPal) - smteamgroup@gmail.com
18 |
19 | ### Provides:
20 | - snippets
21 | - syntax highlighting
22 | - bracket matching for Mikrotik RouterOS script.
23 |
24 | ## Snippets
25 |
26 | 
27 |
28 | ## Syntax Highlighting
29 |
30 | 
31 |
32 | ## Let's make writing scripts easier:
33 | - [Download source (.zip file)][1]
34 | - [Label issues][2]
35 | - [Pull requests][3]
36 | - [Tell about in Twitter][4] (#rosScript #RouterOSScript #Mikrotik #RouterOS #devMike)
37 |
38 | [1]:https://github.com/devMikeUA/vscode_mikrotik_routeros_script/archive/master.zip
39 | [2]:https://github.com/devMikeUA/vscode_mikrotik_routeros_script/issues
40 | [3]:https://github.com/devMikeUA/vscode_mikrotik_routeros_script/pulls
41 | [4]:https://www.twitter.com/home?status=%20%23rosScript%20%23RouterOSScript%20%23Mikrotik%20%23RouterOS%20%23devMike%20Let's%20make%20writing%20scripts%20easier%20%23VSMarketplace%3A%20https%3A%2F%2Fmarketplace.visualstudio.com%2Fitems%3FitemName%3DdevMike.mikrotik-routeros-script
42 |
43 | ## Chat
44 |
45 | -  [Gitter][_2]
46 | -  [Discord][_3]
47 | -  [Telegram][_4]
48 |
49 | ## Contacts
50 | -  [GitHub](https://github.com/devMikeUA/)
51 | -  [Twitter](https://twitter.com/devMikeUA/)
52 | -  [LinkedIn](https://www.linkedin.com/in/devMikeUA/)
53 |
54 | ## License
55 |
56 | MIT © [Korzhov Mikhail](https://github.com/devMikeUA)
57 |
58 | ## Release Notes
59 |
60 | ### 2022.9.2
61 | - Add some RouterOS 7 syntax highlighting.
62 | - Fix some syntax highlighting.
63 | To be continue ;)
64 |
65 | ### 2018.8.2
66 | - Modify snippet (add new).
67 |
68 | ### 2018.8.1
69 | - Fix some syntax highlighting.
70 |
71 | ### 2018.8.0
72 | - First release.
--------------------------------------------------------------------------------
/images/example.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/devMikeUA/vscode_mikrotik_routeros_script/aaf19c0581ffe238850eb42aefe0ce67bb6ed9d8/images/example.gif
--------------------------------------------------------------------------------
/images/example.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/devMikeUA/vscode_mikrotik_routeros_script/aaf19c0581ffe238850eb42aefe0ce67bb6ed9d8/images/example.png
--------------------------------------------------------------------------------
/images/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/devMikeUA/vscode_mikrotik_routeros_script/aaf19c0581ffe238850eb42aefe0ce67bb6ed9d8/images/icon.png
--------------------------------------------------------------------------------
/images/icon_ua.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/devMikeUA/vscode_mikrotik_routeros_script/aaf19c0581ffe238850eb42aefe0ce67bb6ed9d8/images/icon_ua.png
--------------------------------------------------------------------------------
/language-configuration.json:
--------------------------------------------------------------------------------
1 | {
2 | "comments": {
3 | "lineComment": "#",
4 | "blockComment": [ "#" ]
5 | },
6 | "brackets": [
7 | ["{", "}"],
8 | ["[", "]"],
9 | ["(", ")"]
10 | ],
11 | "autoClosingPairs": [
12 | { "open": "{", "close": "}", "notIn": ["comment"] },
13 | { "open": "[", "close": "]", "notIn": ["comment"] },
14 | { "open": "(", "close": ")", "notIn": ["comment"] },
15 | ["\"", "\""],
16 | ["'", "'"]
17 | ],
18 | "surroundingPairs": [
19 | { "open": "{", "close": "}" },
20 | { "open": "[", "close": "]" },
21 | { "open": "(", "close": ")" },
22 | { "open": "\"", "close": "\"" },
23 | { "open": "'", "close": "'" }
24 | ],
25 | "folding": {
26 | "offSide": true,
27 | "markers": {
28 | "start": "{",
29 | "end": "}"
30 | },
31 | "wordPattern": "(-?\\d*\\.\\d\\w*)|([^\\`\\~\\!\\@\\#\\%\\^\\&\\*\\(\\)\\-\\=\\+\\[\\{\\]\\}\\\\\\|\\;\\:\\'\\\"\\,\\.\\<\\>\\/\\?\\s]+)"
32 | }
33 | }
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "mikrotik-routeros-script",
3 | "displayName": "%displayName%",
4 | "description": "%description%",
5 | "version": "2022.9.2",
6 | "publisher": "devMike",
7 | "license": "MIT",
8 | "preview": true,
9 | "icon": "images/icon_ua.png",
10 | "engines": {
11 | "vscode": "^1.13.0"
12 | },
13 | "categories": [
14 | "Programming Languages",
15 | "Snippets",
16 | "Other"
17 | ],
18 | "contributes": {
19 | "languages": [{
20 | "id": "rosScript",
21 | "extensions": [".rsc"],
22 | "aliases": [
23 | "Mikrotik RouterOS Script",
24 | "RouterOS Script",
25 | "Mikrotik Script",
26 | "Mikrotik",
27 | "RouterOS",
28 | "rsc",
29 | "mrosscript",
30 | "ross"
31 | ],
32 | "configuration": "./language-configuration.json"
33 | }],
34 | "grammars": [{
35 | "language": "rosScript",
36 | "scopeName": "source.rsc",
37 | "path": "./syntaxes/rosScript.tmLanguage.json"
38 | }],
39 | "snippets": [{
40 | "language": "rosScript",
41 | "path": "./snippets/rosScript.json"
42 | }]
43 | },
44 | "__metadata": {
45 | "publisherDisplayName": "Korzhov Mikhail"
46 | },
47 | "bugs": {
48 | "url": "https://github.com/devMikeUA/vscode_mikrotik_routeros_script/issues",
49 | "email": "smteamgroup@gmail.com"
50 | },
51 | "repository": {
52 | "type": "git",
53 | "url": "https://github.com/devMikeUA/vscode_mikrotik_routeros_script.git"
54 | },
55 | "homepage": "https://github.com/devMikeUA/vscode_mikrotik_routeros_script/blob/master/README.md"
56 | }
--------------------------------------------------------------------------------
/package.nls.json:
--------------------------------------------------------------------------------
1 | {
2 | "displayName": "Mikrotik RouterOS script",
3 | "description": "Provides snippets, syntax highlighting, bracket matching for Mikrotik RouterOS script."
4 | }
--------------------------------------------------------------------------------
/snippets/rosScript.json:
--------------------------------------------------------------------------------
1 | {
2 | ":global []":{
3 | "prefix": ":global",
4 | "body": ":global ${1:myVar} ${2|0,\"\",[],()|};$0",
5 | "description": "Define global variable."
6 | },
7 |
8 | ":local []":{
9 | "prefix": ":local",
10 | "body": ":local ${1:myVar} ${2|0,\"\",[],()|};$0",
11 | "description": "Define local variable."
12 | },
13 |
14 | ":beep ":{
15 | "prefix": ":beep",
16 | "body": ":beep ${1:freq} ${2:length};$0",
17 | "description": "Beep built in speaker."
18 | },
19 |
20 | ":delay