                                     # We have finished consuming the command parameters
                                     innerEndIndex = textIndex - 1
                                     continueMatch = false
+                            when '\n'
+                                # We got to the end of the line before finishing parameter parsing.
+                                innerEndIndex = textIndex
+                                continueMatch = false
                 textIndex++
             if not commandMatch
                 # return {'0': null, '1': null, 'reason': reasonForNoMatch}

            # reasonForNoMatch = ""
            continueMatch = true
            while continueMatch
                switch state
                    when "beforeCommand"
                        switch text.charAt textIndex

    buildNeededParsers: ->
        for command of @commands
            @commands[command]['parser'] = {
                'exec': @buildParser command
                }

        return

    buildParser: (command) ->
        ###
            Creates a parser that will recognize the command.
            It will return an object of the form
