Author Topic: Sublime Text 2 Package for LU Syntax  (Read 7299 times)

[WS]Teddy

  • Newbie
  • *
  • Posts: 9
  • Karma: +7/-1
    • View Profile
Sublime Text 2 Package for LU Syntax
« 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) 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:




Download
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
« Last Edit: December 24, 2013, 06:29:04 am by [WS]Teddy »

Willian_Luigi

  • Newbie
  • *
  • Posts: 4
  • Karma: +0/-2
    • View Profile
Re: Sublime Text 2 Package for LU Syntax
« Reply #1 on: September 25, 2013, 10:43:23 am »
Very interesting !

[WS]Teddy

  • Newbie
  • *
  • Posts: 9
  • Karma: +7/-1
    • View Profile
Re: Sublime Text 2 Package for LU Syntax
« Reply #2 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 theme.  :)

edit: added another twentyish completions, roughly 40 in total.
« Last Edit: December 24, 2013, 07:52:41 am by [WS]Teddy »

SugarD

  • Asshat Gaming Founder
  • Tester
  • Sr. Member
  • ****
  • Posts: 820
  • Karma: +37/-75
  • STOP IN THE NAME OF THE COLESLAW!
    • View Profile
    • Clan Xperience
Re: Sublime Text 2 Package for LU Syntax
« Reply #3 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 theme.  :)

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

Thank you Mr. Bear! <3

[WS]Teddy

  • Newbie
  • *
  • Posts: 9
  • Karma: +7/-1
    • View Profile
Re: Sublime Text 2 Package for LU Syntax
« Reply #4 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.

 

© Liberty Unleashed Team.