Menu

[r1152]: / trunk / ext / scintilla / lexlink.js  Maximize  Restore  History

Download this file

24 lines (21 with data), 635 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*
Comment lexer modules from "src\Catalogue.cxx" not used by Notepad2
(c) Florian Balmer 2011
Adapted for CommitMonitor
*/
var lex = new Array(
"lmDiff"
);
var fso = new ActiveXObject("Scripting.FileSystemObject");
var fh = fso.OpenTextFile("src\\Catalogue.cxx",1,0);
if (!fh.AtEndOfStream) {
var str = fh.ReadAll();
str = str.replace(
/^(\s*)\/\/(LINK_LEXER)/gim,
"$1$2");
var re = new RegExp("^(\\s*)(LINK_LEXER\\((?!"+lex.join("|")+")\\w+\\);)","gim");
str = str.replace(re,"$1//$2");
fh.Close();
var fh = fso.OpenTextFile("src\\Catalogue.cxx",2,0);
fh.Write(str);
}
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.