Skip to content

Commit d36a2b5

Browse files
committed
删掉isLineCommented,以后再以其他方式实现
1 parent d8c6816 commit d36a2b5

File tree

3 files changed

+4
-15
lines changed

3 files changed

+4
-15
lines changed

cli.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ var fs = require('fs');
44

55
// 编译之后再运行这个文件
66
const vccrlib = require('./dist-vccrlib/vccrlib.js');
7-
// 在这里定制修改用于判断文本文件中一行字符串是否应被忽略的条件
8-
isLineCommented = function (line_string)
9-
{ return false; }
107

118
function start()
129
{

js/checkessay.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,6 @@ function genCrrtUnusualInfos()
137137
}
138138
}
139139

140-
var isLineCommented = function (line_string)
141-
{ return false; }
142140

143141
function genEssayArr(essay)
144142
{
@@ -150,12 +148,6 @@ function genEssayArr(essay)
150148
{
151149
const line_num = iLine + 1;
152150
const line_string = lines_strs[iLine];
153-
if ( isLineCommented(line_string) )
154-
{
155-
eCheckSt.linesCrrtStatus [line_num] = "cmt";
156-
eCheckSt.essayCmtLineCount ++ ;
157-
continue;
158-
}
159151

160152
eCheckSt.essayLineCount ++;
161153

test/test.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
* 路径应由上级算
44
*/
55

6-
isLineCommented = function (line_string) {
7-
if ( [ '#' , '[' , ';' , '.' , '-' , ' ' , '\t' ].includes( line_string[0] ) )
8-
return true;
9-
}
6+
// isLineCommented = function (line_string) {
7+
// if ( [ '#' , '[' , ';' , '.' , '-' , ' ' , '\t' ].includes( line_string[0] ) )
8+
// return true;
9+
// }
1010

1111
var table_files_list = fs.readFileSync("test/tablefiles.txt").toString() .split("\n");
1212

0 commit comments

Comments
 (0)