     ex.stack = text
     throw ex
 
+  takeOrThrowError: (stringArray, message)->
+    if (char = @take stringArray)
+      return char
+    else
+      return @throwError message
+
   ###
     Utilities
   ###


      node = new CohtmlCommentNode parentNode, innerText

      # @take @charset['newline']

      @backUp()
      childrenList = @extractScope (indentLevel + 1), node
      if childrenList.length isnt 0


      node = new CohtmlCommentNode parentNode, innerText

      @takeOrThrowError @charset['newline'], 'Expected newline'

      @backUp()
      childrenList = @extractScope (indentLevel + 1), node
