Liberty Unleashed

Scripting => Script Releases => Topic started by: [WS]Teddy on September 24, 2013, 07:06:47 am

Title: Sublime Text 2 Package for LU Syntax
Post by: [WS]Teddy on September 24, 2013, 07:06:47 am
Hi,

So I've never really worked with SL2 packages so this might not be done entirely properly but I've found the basic squirrel package (credit (https://github.com/micheg/sublime_squirrel)) and that wasn't really enough for me so I did some digging and found... well nothing. I decided I would read a few pages on the wiki for SL2, and try some experimenting... I honestly just learned how to do this today, and this here is the result:
(http://i1299.photobucket.com/albums/ag76/Mr-T3ddy/20130932721170_zpsd328b293.png)

(http://i1299.photobucket.com/albums/ag76/Mr-T3ddy/20130947490044_zpsaaaaa914.png)

Download
https://github.com/derekmartinez18/sublime-lu-squirrel (https://github.com/derekmartinez18/sublime-lu-squirrel)

I've added much of the functions as "controls", and the blahblah.this as support functions, I mainly did it this way because it looked really cool with the theme I use, Monokai.

It contains most functions, including some of the module ones (mysql, sqlite, hash etc).

If I messed anything up, or missed any major, or even minor ones just let me know here or on github.

To install:

1. Open Sublime Text 2 (or 3) and select "Browse Packages"
2. Create a new folder called "Squirrel" in the Packages folder.
3. Copy the contents of the git repo to that folder

Notes:
The original repository says it doesn't support windows however this isn't the case. It works fine on Windows 7/8, Ubuntu 12.04+, and Mac.

Updates:
10/18/13 - The package now supports all server side constants, and moved a few snippets over to a newer format of completions. (Blip, FindPlayer, KickPlayer, GetHour, and GetWeather).

12/24/13 - added 20 new completions / minor fixes

Future
Will support all functions as completions/snippets
Title: Re: Sublime Text 2 Package for LU Syntax
Post by: Willian_Luigi on September 25, 2013, 10:43:23 am
Very interesting !
Title: Re: Sublime Text 2 Package for LU Syntax
Post by: [WS]Teddy on December 24, 2013, 06:25:38 am
Updated;

Added twentyish new completions using an improved method (since I learned the proper way :D )
Fixed a few values

Also the previous update added all server/client side constants to completions.

Looks decent using GitHub (http://colorsublime.com/theme/Github) theme.  :)

edit: added another twentyish completions, roughly 40 in total.
Title: Re: Sublime Text 2 Package for LU Syntax
Post by: SugarD on January 19, 2014, 09:38:15 pm
Updated;

Added twentyish new completions using an improved method (since I learned the proper way :D )
Fixed a few values

Also the previous update added all server/client side constants to completions.

Looks decent using GitHub ([url]http://colorsublime.com/theme/Github[/url]) theme.  :)

edit: added another twentyish completions, roughly 40 in total.

Thank you Mr. Bear! <3
Title: Re: Sublime Text 2 Package for LU Syntax
Post by: [WS]Teddy on September 28, 2014, 08:06:44 pm
Updated 28/9/14

Added all server event callbacks to auto-completions
Fixed language highlighting. Only the first below was detected prior. Now all of them will highlight properly:
Code: [Select]
function (var1)
function ( var1 )
function (var1,var2)
function ( var1, var2 )
Fixed "break;" not highlighting
In a previous small update the latest update's new constants were added.