소스 검색

Fix stripComments;

bjorn 9 년 전
부모
커밋
52730f9544
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      parse.lua

+ 2 - 1
parse.lua

@@ -306,5 +306,6 @@ end
 
 return function(str)
   assert(type(str) == 'string', 'parser expects a string')
-  return graphQL:match(stripComments(str)) or error('Syntax error near line ' .. line, 2)
+  str = stripComments(str)
+  return graphQL:match(str) or error('Syntax error near line ' .. line, 2)
 end