         def.fullname = fullname
 
         if (fullname.toLowerCase() == "r")
-            varName = string.split(":")[1]
-            path = string.split(":")[2]
+            lines = string.split("\n")
+            i = 0
+            while i < lines.length
+                line = {}
+                line.varName = string.split(":")[1]
+                path = string.split(":")[2]
+                line.path = ((path != null) ? path : line.varName);
+                if typeof path != "undefined" && path.length > 0
+                    line.path = path
+                else
+                    line.path = line.varName
+
+                def.requireLines.push(line)
             def.type = "require"
-            def.varName = varName
-            def.path = ((path != null) ? path : varName);
-            if typeof path != "undefined" && path.length > 0
-                def.path = path
-            else
-                def.path = varName
+            console.log lines
 
             return def
 

        classdef = module.exports.parseClassdef(text)

        if classdef.type == "class"

            # Start the class
            buffer += "#{classdef.fullname} = (function() {\n"


            buffer += "\n}());"

        else if classdef.type == "require"
                for line in classdef.requireLines
                    buffer += "var #{line.varName} = require(\"#{line.path}\");"
                    buffer += "\n"

        editor.insertText buffer

