diff --git a/.gitmodules b/.gitmodules index 2d86ee5cd6..8546c4a41e 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1197,3 +1197,6 @@ [submodule "vendor/grammars/zephir-sublime"] path = vendor/grammars/zephir-sublime url = https://github.com/phalcon/zephir-sublime +[submodule "vendor/grammars/Sk-ST3"] + path = vendor/grammars/Sk-ST3 + url = https://github.com/AyhamAl-Ali/Sk-ST3.git diff --git a/grammars.yml b/grammars.yml index 06c9eb141e..db5dbeb6d0 100644 --- a/grammars.yml +++ b/grammars.yml @@ -86,6 +86,8 @@ vendor/grammars/SMT.tmbundle: vendor/grammars/Scalate.tmbundle: - source.scaml - text.html.ssp +vendor/grammars/Sk-ST3: +- source.skript vendor/grammars/Slash.tmbundle: - text.html.slash vendor/grammars/Stata.tmbundle: diff --git a/lib/linguist/languages.yml b/lib/linguist/languages.yml index 0bbb98b4f5..77614f5698 100644 --- a/lib/linguist/languages.yml +++ b/lib/linguist/languages.yml @@ -7404,3 +7404,11 @@ xBase: tm_scope: source.harbour ace_mode: text language_id: 421 +Skript: + type: programming + color: + aliases: + - sk + extensions: + - ".sk" + language_id: 754733364 diff --git a/samples/Skript/placeholder.sk b/samples/Skript/placeholder.sk new file mode 100644 index 0000000000..00bcdfdae2 --- /dev/null +++ b/samples/Skript/placeholder.sk @@ -0,0 +1,2 @@ +File is a placeholder for new samples in the works +saving as .sk diff --git a/vendor/grammars/Sk-ST3/LICENSE.md b/vendor/grammars/Sk-ST3/LICENSE.md new file mode 100644 index 0000000000..dbc4cfec0e --- /dev/null +++ b/vendor/grammars/Sk-ST3/LICENSE.md @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2022 Ayham Al Ali + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/vendor/grammars/Sk-ST3/ST3/Sk-ST3/+ Material Theme (Recommended)/Material Theme.sublime-package b/vendor/grammars/Sk-ST3/ST3/Sk-ST3/+ Material Theme (Recommended)/Material Theme.sublime-package new file mode 100644 index 0000000000..eca5010909 Binary files /dev/null and b/vendor/grammars/Sk-ST3/ST3/Sk-ST3/+ Material Theme (Recommended)/Material Theme.sublime-package differ diff --git a/vendor/grammars/Sk-ST3/ST3/Sk-ST3/+ Material Theme (Recommended)/Preferences.sublime-settings b/vendor/grammars/Sk-ST3/ST3/Sk-ST3/+ Material Theme (Recommended)/Preferences.sublime-settings new file mode 100644 index 0000000000..10791afaf0 --- /dev/null +++ b/vendor/grammars/Sk-ST3/ST3/Sk-ST3/+ Material Theme (Recommended)/Preferences.sublime-settings @@ -0,0 +1,62 @@ +{ + "afterglow_folder_icons": true, + "always_show_minimap_viewport": true, + "auto_complete": true, + "auto_complete_commit_on_tab": true, + "bold_folder_labels": true, + "color_scheme": "Packages/Sk-ST3/Sk-ST3.tmTheme", + "contrasted_quick_panel": true, + "contrasted_sidebar": true, + "contrasted_tabs": true, + "extract_sublime_package_ask_on_open": true, + "font_face": "Fira Mono", + "font_options": + [ + "gray_antialias", + "subpixel_antialias", + "bold" + ], + "font_size": 11, + "highlight_line": true, + "icon_file_type_enable": true, + "ignored_packages": + [ + "ActionScript", + "AppleScript", + "ASP", + "Clojure", + "Vintage", + "zzz A File Icon zzz" + ], + "indent_guide_options": + [ + "draw_normal", + "draw_active" + ], + "material_theme_accent_acid-lime": true, + "material_theme_accent_scrollbars": true, + "material_theme_big_fileicons": true, + "material_theme_bullet_tree_indicator": true, + "material_theme_compact_sidebar": true, + "material_theme_contrast_mode": true, + "material_theme_disable_fileicons": true, + "material_theme_disable_folder_animation": true, + "material_theme_disable_tree_indicator": true, + "material_theme_panel_separator": true, + "material_theme_small_statusbar": true, + "material_theme_small_tab": true, + "material_theme_tabs_autowidth": true, + "material_theme_tree_headings": true, + "overlay_scroll_bars": "enabled", + "show_errors_inline": true, + "theme": "Material-Theme.sublime-theme", + "theme_sidebar_close_always_visible": true, + "theme_sidebar_disclosure": true, + "theme_sidebar_file_icons_hidden": true, + "theme_sidebar_folder_arrow": true, + "theme_sidebar_folder_atomized": true, + "theme_sidebar_folder_materialized": true, + "theme_sidebar_folder_mono": true, + "theme_sidebar_icon_saturation_hg": true, + "theme_tooltips_font_lg": true +} diff --git a/vendor/grammars/Sk-ST3/ST3/Sk-ST3/+ Material Theme (Recommended)/Read Me.txt b/vendor/grammars/Sk-ST3/ST3/Sk-ST3/+ Material Theme (Recommended)/Read Me.txt new file mode 100644 index 0000000000..b61bd74a2f --- /dev/null +++ b/vendor/grammars/Sk-ST3/ST3/Sk-ST3/+ Material Theme (Recommended)/Read Me.txt @@ -0,0 +1,12 @@ +» Steps to Install Sk-ST3 with Material Theme (+ recommended options) + + +1. Copy "Sk-ST3.sublime-package" to "%appdata%/Sublime Text 3/Installed Packages" + +2. Copy "Material Theme.sublime-package" to "%appdata%/Sublime Text 3/Installed Packages" + +3. Copy "Preferences.sublime-settings" to "%appdata%/Sublime Text 3/Packages/User" + + +Happy Coding. +- Ayham Al-Ali \ No newline at end of file diff --git a/vendor/grammars/Sk-ST3/ST3/Sk-ST3/NEW.txt b/vendor/grammars/Sk-ST3/ST3/Sk-ST3/NEW.txt new file mode 100644 index 0000000000..46e38b7f26 --- /dev/null +++ b/vendor/grammars/Sk-ST3/ST3/Sk-ST3/NEW.txt @@ -0,0 +1,39 @@ + +# New Features +> **Added** All the correct patterns of `stop|exit` *[Eff]* +> **Added** `size of` *[Expr]* +> **Added** `[actual[ly]] target[ed] %type%` *[Expr]* +> **Added** colored the color names `Ex. (set color of block to aqua)` *[Expr]* +> **Added** `connect %player% to [server] %string%` *[Eff]* +> **Added** `[un](cancel|ignore) [the] [current] [command] cooldown` *[Eff]* +> **Added** `[un]Lea(sh|d)` *[Eff]* +> **Added** `force %player% to respawn` *[Eff]* +> **Added** `feed` *[Eff]* +> **Added** `[un]load` *[Eff]* +> **Added** `[local[ly]] suppress [the] (conflict|variable save|[missing] conjunction[s]|starting [with] expression[s]) warning[s]` *[Eff]* +> **Added** `(make|make) %players% (say|send [the] message[s]) %strings%` *[Eff]* +> **Added** all patterns of `force %players% to [(stop|start)] fly[ing]` *[Eff]* +> **Added** `[the] (x|y|z)(-| )(coord[inate]|pos[ition]|loc[ation])[s] of %locations%` *[Expr]* +> **Added** `(angle|between|normalize[d]|new|yaw|pitch|volume|(cylindrical|spherical) vector%|random|velocity|dot|cross)` *[Expr]*s +> **Added** `(x|y|z) of %vector%` *[Expr]* +> **Added** `rotate %vector% ...` *[Eff]* +> **Added** `around` *[Expr]* +> **Added** `slots` *[Expr]* (supported plural of slot) +> **Added** `amount of %type%` *[Expr]* + + +# Fixes +> **Fixed** Spaced tabs (huge fix too all the spaces tabs) +> **Fixed** newline expression in strings `%newline%|%nl%` *[Expr]* +> **Fixed** `loop-\w+` in some cases such as `set {_var} to loop-value`*[Expr]* +> **Fixed** Ignore case of Color Codes Ex. `&a &A &B &C &d`*[Expr]* +> **Fixed** `[un]col[u]or[ed]` *[Expr]* +> **Fixed** `[the] (current |top |open )inventor(y|ied)` *[Expr]* +> **Fixed** `on (step|walk) on %itemtype%` *[Evt]* +> **Fixed** `(as|at|by|with)` *[Keywords]* +> There could be more that I don't remember :smile: + + +# Donating? + +> Don't forget to buy me a coffee if you like the work I make here and the time I spend for you and all others to make you feel happier. [Here](https://www.paypal.me/ayhamalali) \ No newline at end of file diff --git a/vendor/grammars/Sk-ST3/ST3/Sk-ST3/Read Me.txt b/vendor/grammars/Sk-ST3/ST3/Sk-ST3/Read Me.txt new file mode 100644 index 0000000000..ea769822ea --- /dev/null +++ b/vendor/grammars/Sk-ST3/ST3/Sk-ST3/Read Me.txt @@ -0,0 +1,33 @@ +Note: This Syntax Highlighting belongs to @HYPExMon5ter and I've only forked this because I liked to make my own version of this Resource. + +Steps: + +> Using Sublime Text Package Control: + +> Steps: +> - Install Package Control (if not already) using this link: https://packagecontrol.io/installation +> - Go to `Preferences > Package Control` +> - Type `install package` +> - Type `Sk-ST3` +> - Press `Enter` +> - Go to `View > Syntax > Sk-ST3` +> - Go to `Preferences > Color Scheme > Sk-ST3` or you can choose the theme you like instead of `Sk-ST3` there is `Sk-ST3 Bold` etc. +> **NOTE:** It's recommended to install Material Theme because Sk-ST3's Editor background uses Material Main Theme. + +> Manual: + +1. Download Sublime Text 3 (Of course!) +2. Download Sk-ST3 (Of course!) +3. Install Material Theme on ST3 (Optional) (This will complete the background theme and to get in the mood) +4. Copy Sk-ST3.sublime-package to %appdata%/Sublime Text 3/Installed Packages +5. Go to ST3's tools bar > Preferences > Theme > Material-Theme.sublime-theme (Optional if you have installed the them) - (SCREENSHOT: https://i.imgur.com/YolLw2r.png) +6. Go to ST3's tools bar > Preferences > Color Scheme > search for Sk-ST3 - (SCREENSHOT: https://i.imgur.com/dI50pOo.png) +7. Open any .sk/.yml file and go to ST3's tools bar > View> Syntax > Sk.ST3 - (SCREENSHOT: https://i.imgur.com/LbVeD4c.png) +8. Make sure to add "Bold" option to font options in ST3 Settings ​ + +* Open the two files included with this .ZIP and choose what you like either with or without Material Theme then follow the Read Me file in that folder you chose. + + +- Ayham Al-Ali + + diff --git a/vendor/grammars/Sk-ST3/ST3/Sk-ST3/Sk-ST3.sublime-package b/vendor/grammars/Sk-ST3/ST3/Sk-ST3/Sk-ST3.sublime-package new file mode 100644 index 0000000000..c21a8400c0 Binary files /dev/null and b/vendor/grammars/Sk-ST3/ST3/Sk-ST3/Sk-ST3.sublime-package differ diff --git a/vendor/grammars/Sk-ST3/ST3/Sk-ST3/Without Material Theme (Not Recommended)/Preferences.sublime-settings b/vendor/grammars/Sk-ST3/ST3/Sk-ST3/Without Material Theme (Not Recommended)/Preferences.sublime-settings new file mode 100644 index 0000000000..950712fade --- /dev/null +++ b/vendor/grammars/Sk-ST3/ST3/Sk-ST3/Without Material Theme (Not Recommended)/Preferences.sublime-settings @@ -0,0 +1,37 @@ +{ + "afterglow_folder_icons": true, + "always_show_minimap_viewport": true, + "auto_complete": true, + "auto_complete_commit_on_tab": true, + "bold_folder_labels": true, + "color_scheme": "Packages/Sk-ST3/Sk-ST3.tmTheme", + "contrasted_quick_panel": true, + "contrasted_sidebar": true, + "contrasted_tabs": true, + "extract_sublime_package_ask_on_open": true, + "font_face": "Fira Mono", + "font_options": + [ + "gray_antialias", + "subpixel_antialias", + "bold" + ], + "font_size": 11, + "highlight_line": true, + "icon_file_type_enable": true, + "indent_guide_options": + [ + "draw_normal", + "draw_active" + ], + "overlay_scroll_bars": "enabled", + "show_errors_inline": true, + "theme_sidebar_close_always_visible": true, + "theme_sidebar_disclosure": true, + "theme_sidebar_file_icons_hidden": true, + "theme_sidebar_folder_arrow": true, + "theme_sidebar_folder_atomized": true, + "theme_sidebar_folder_mono": true, + "theme_sidebar_icon_saturation_hg": true, + "theme_tooltips_font_lg": true +} diff --git a/vendor/grammars/Sk-ST3/ST3/Sk-ST3/Without Material Theme (Not Recommended)/Read Me.txt b/vendor/grammars/Sk-ST3/ST3/Sk-ST3/Without Material Theme (Not Recommended)/Read Me.txt new file mode 100644 index 0000000000..e15899804f --- /dev/null +++ b/vendor/grammars/Sk-ST3/ST3/Sk-ST3/Without Material Theme (Not Recommended)/Read Me.txt @@ -0,0 +1,10 @@ +» Steps to Install Sk-ST3 without Material Theme (+ recommended options) + + +1. Copy "Sk-ST3.sublime-package" to "%appdata%/Sublime Text 3/Installed Packages" + +2. Copy "Preferences.sublime-settings" to "%appdata%/Sublime Text 3/Packages/User" + + +Happy Coding. +- Ayham Al-Ali \ No newline at end of file