Skip to content

Commit

Permalink
TAG009 2020/05/03 3rd
Browse files Browse the repository at this point in the history
  Compiler
    ・Filenameタグ検索時にincludeタグがあると内部でエラーがでて読み込みに失敗するバグを修正
  • Loading branch information
kumatan committed May 3, 2020
1 parent 2c97841 commit 16912c2
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGE.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
�X�V����
TAG009 2020/05/03 3rd
Compiler
�EFilename�^�O��������include�^�O������Ɠ����ŃG���[���łēǂݍ��݂Ɏ��s����o�O���C��

TAG008 2020/05/03 2nd
Compiler
�EFilename�^�O�ɑΉ�
Expand Down
3 changes: 2 additions & 1 deletion PMDDotNETCompiler/compiler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,9 @@ public CompilerInfo GetCompilerInfo()
return ci;
}

public Tuple<string, string>[] GetTags(string srcBuf)
public Tuple<string, string>[] GetTags(string srcBuf, Func<string, Stream> appendFileReaderCallback)
{
this.appendFileReaderCallback = appendFileReaderCallback;
List<string> lstTag = new List<string>();
List<Tuple<string, string>> tags = new List<Tuple<string, string>>();

Expand Down
2 changes: 1 addition & 1 deletion PMDDotNETConsole/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ static void Compile(string[] args,int argIndex)
srcText = sr.ReadToEnd();

string outFileName = "";
Tuple<string, string>[] tags = compiler.GetTags(srcText);
Tuple<string, string>[] tags = compiler.GetTags(srcText, appendFileReaderCallback);
if (tags != null && tags.Length > 0)
{
foreach (Tuple<string, string> tag in tags)
Expand Down
2 changes: 1 addition & 1 deletion PMDDotNETConsole/Properties/launchSettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"profiles": {
"PMDDotNETConsole": {
"commandName": "Project",
"commandLineArgs": "/v C:\\Users\\kuma\\Desktop\\pmd\\TT2S_15.mml"
"commandLineArgs": "/v C:\\Users\\kuma\\Desktop\\pmd\\KRAN_25.mml"
}
}
}

0 comments on commit 16912c2

Please sign in to comment.