Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add language Skript #5726

Closed
wants to merge 20 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 2 additions & 0 deletions grammars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
8 changes: 8 additions & 0 deletions lib/linguist/languages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 2 additions & 0 deletions samples/Skript/placeholder.sk
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
File is a placeholder for new samples in the works
saving as .sk
21 changes: 21 additions & 0 deletions vendor/grammars/Sk-ST3/LICENSE.md
Original file line number Diff line number Diff line change
@@ -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.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -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
}
Original file line number Diff line number Diff line change
@@ -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
39 changes: 39 additions & 0 deletions vendor/grammars/Sk-ST3/ST3/Sk-ST3/NEW.txt
Original file line number Diff line number Diff line change
@@ -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)
33 changes: 33 additions & 0 deletions vendor/grammars/Sk-ST3/ST3/Sk-ST3/Read Me.txt
Original file line number Diff line number Diff line change
@@ -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


Binary file not shown.
Original file line number Diff line number Diff line change
@@ -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
}
Original file line number Diff line number Diff line change
@@ -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