AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Snippets and Tutorials (https://forums.alliedmods.net/forumdisplay.php?f=112)
-   -   [tools] Auto-increment version plugins for sublimetext 2 (https://forums.alliedmods.net/showthread.php?t=207210)

ppalex 01-31-2013 03:04

[tools] Auto-increment version plugins for sublimetext 2
 
1 Attachment(s)
Description/Features:
When saving any file with ".sp" extension, plugin automatically searches string
Quote:

#define VERSION "ХХ.XX.XXX"
or
Quote:

#define PLUGIN_VERSION "ХХ.XX.XXX"
and increments last XXX by 1.

Installation:
Unpack archive to your \Sublime Text 2\Packages\User directory. On my system this path looks like C:\Users\***\AppData\Roaming\Sublime Text 2\Packages\User

mcpan313 01-31-2013 11:54

Re: [tools] Auto-increment version plugins for sublimetext 2
 
Thanks!

Quote:

Originally Posted by ppalex (Post 1883924)
#define\sVERSION\s\"\d{1,2}\.\d{1,2}\.\d{1,3} \"

Should be better.
Code:

^#define\s+PLUGIN_VERSION\s+\"\d{1,2}\.\d{1,2}\.\d{1,3}\"
And Dillon Beliveau's SourcePawn Syntax Highlighting for Sublime Text 2 doesnt have build system, function/words auto-completion.

If you need this, see my version or Austin Wagner's version.

ppalex 01-31-2013 12:19

Re: [tools] Auto-increment version plugins for sublimetext 2
 
Quote:

Originally Posted by mcpan313 (Post 1884096)
Should be better.
Code:

^#define\s+PLUGIN_VERSION\s+\"\d{1,2}\.\d{1,2}\.\d{1,3}\"

Updated to
Code:

^#define\s+(?:PLUGIN_)?VERSION\s+\"\d{1,2}\.\d{1,2}\.\d{1,3}\"
to support both variants

Quote:

Originally Posted by mcpan313 (Post 1884096)
If you need this, see my version or Austin Wagner's version.

Thank you too!


All times are GMT -4. The time now is 18:36.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.