Browse Source

Material BlockLanguageParser now accounts for commented lines when computing the line number of a statement

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10189 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
rem..om 12 năm trước cách đây
mục cha
commit
de229d4bec

+ 1 - 0
engine/src/core/com/jme3/util/blockparser/BlockLanguageParser.java

@@ -90,6 +90,7 @@ public class BlockLanguageParser {
                 insideComment = true;
                 pushStatement(buffer);
                 lastChar = '\0';
+                lineNumber++;
             }else if (!insideComment){
                 if (ci == -1 || c == '{' || c == '}' || c == '\n' || c == ';'){
                     pushStatement(buffer);