diff options
author | Basil <basil@miranda-ng.org> | 2013-02-05 08:34:55 +0000 |
---|---|---|
committer | Basil <basil@miranda-ng.org> | 2013-02-05 08:34:55 +0000 |
commit | c3a79c00ec7c51be154a95072dae0c7aa8a27896 (patch) | |
tree | 755d7c5e8c6e37b6a1021d8eec631f9e32b5f92a | |
parent | 6d78934a839da88b9ae7c213bd0f14eeb4bb387a (diff) |
- "Spin" crap from *.RC files removed.
- updated RegExp for parse source files, now strings with spaces between open bracket and quotation mark parsed.
Example string mi.ptszName = LPGENT( "Show/Hide &Ping Window" )
git-svn-id: http://svn.miranda-ng.org/main/trunk@3433 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r-- | tools/lpgen/lpgen.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/lpgen/lpgen.js b/tools/lpgen/lpgen.js index 9d8d049162..44e169ac69 100644 --- a/tools/lpgen/lpgen.js +++ b/tools/lpgen/lpgen.js @@ -422,6 +422,8 @@ function ParseRCFile(RC_File,array) { case "Tree2": {break};
case "Spin1": {break};
case "Spin2": {break};
+ case "Spin3": {break};
+ case "Spin4": {break};
case "Spin5": {break};
case "Custom1": {break};
case "Custom2": {break};
@@ -450,7 +452,7 @@ function ParseSourceFile (SourceFile,array) { //not store ?: functions LPGEN or LPGENT? or Translate(T or W) or _T, than any unnecessary space \s, than not stored ?: "(" followed by ' or " (stored and used as \1) than \S\s - magic with multiline capture, ending with not stored ?= \1 (we get " or ' after "("), than none or few spaces \x20 followed by )/m=multiline g=global
//var find= /(?:LPGENT?|Translate[TW]?|_T)(?:\s*?\()(['"])([\S\s]*?)(?=\1,?\x20*?(?:tmp)?\))/mg;
//comment previous line and uncomment following line to output templates without _T() function in source files. Too many garbage from _T()..
- var find= /(?:LPGENT?|Translate[TW]?)(?:\s*?\()(['"])([\S\s]*?)(?=\1,?\x20*?(?:tmp)?\))/mg;
+ var find= /(?:LPGENT?|Translate[TW]?)(?:\s*?\(\s*?)(['"])([\S\s]*?)(?=\1,?\x20*?(?:tmp)?\))/mg;
//read file fully into var
allstrings=sourcefile_stream.ReadAll();
|