Skip to content

Commit

Permalink
fix convert
Browse files Browse the repository at this point in the history
  • Loading branch information
horitaku1124 committed Jun 13, 2018
1 parent 2f686ec commit 2a884c1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
*.iml
.idea
.idea
dist/
2 changes: 1 addition & 1 deletion convert.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ if (!fs.existsSync(dir)) {
for(let i = 0;i < filePaths.length;i++) {
let path = filePaths[i];
if(!path)continue;
if(path == ".")continue;
if(path === ".")continue;
if(path.match(/^[A-Z]:$/))continue;
dir += filePaths[i] + "/";

Expand Down
2 changes: 1 addition & 1 deletion js/phpParser.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
let CodeVal = require('./code_val.js');


let phpParser = {};
phpParser.run = function(tokens){
let inPhpCode = false;
Expand Down Expand Up @@ -33,6 +32,7 @@ phpParser.run = function(tokens){
appendCode(token);
}
} else if(token == "var") {
console.log(" var -> private (" + line + ", " + chars + ")");
appendCode("private");
} else if(token == "@") {
console.log(" @(" + line + ", " + chars + ")");
Expand Down

0 comments on commit 2a884c1

Please sign in to comment.