diff options
author | Basil <basil@miranda-ng.org> | 2013-02-22 10:14:53 +0000 |
---|---|---|
committer | Basil <basil@miranda-ng.org> | 2013-02-22 10:14:53 +0000 |
commit | 34c8d175d77f8e9d786b41fc8ed87d6816829fc8 (patch) | |
tree | 2d977c88b0d66803f4ad9bf9f27493d890a1a8c8 /tools/lpgen | |
parent | dcd91aebe91c75b669b58915d16af72bba70b0bf (diff) |
LPGENW() function added to source-code parser
git-svn-id: http://svn.miranda-ng.org/main/trunk@3686 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'tools/lpgen')
-rw-r--r-- | tools/lpgen/lpgen.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/lpgen/lpgen.js b/tools/lpgen/lpgen.js index 6a0955a508..977179ace0 100644 --- a/tools/lpgen/lpgen.js +++ b/tools/lpgen/lpgen.js @@ -432,7 +432,7 @@ function ParseSourceFile (FileTextVar,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*?L?\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*?L?\s*)(['"])([\S\s]*?)(?=\1,?\x20*?(?:tmp)?\))/mg;
+ var find= /(?:LPGEN[TW]?|Translate[TW]?)(?:\s*?\(\s*?L?\s*)(['"])([\S\s]*?)(?=\1,?\x20*?(?:tmp)?\))/mg;
//now make a job, till end of matching regexp
while ((string = find.exec(FileTextVar)) != null) {
//first, init empty var
|