소스 검색

A couple of fixes to sketched-out parsing algorithm.

Dan Davison 16 년 전
부모
커밋
4589aacb51
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      org-babel.org

+ 2 - 1
org-babel.org

@@ -266,12 +266,13 @@ would then be [[#sandbox][the sandbox]].
       if c == '=':
           new = Node()
           node.daughters = [node.daughters, new]
+          new.parent = node
           node = new
           whereami = "refname"
       if c == ',':
           whereami = "varname"
           varnum += 1
-      elif c == '(':
+      elif c == ')':
           node = node.parent
       elif c == ' ':
           pass