 
                     result_inline_comment = @regex.inline_comment.exec query.slice i
                     if result_inline_comment?
-                        result_query += query.slice(start, i).replace(/\n/g, '\\\\n')
+                        result_query += query.slice(start, i).replace(/\n/g, '')
                         start = i
-                        to_skip = result_inline_comment[0].length
+                        to_skip = result_inline_comment[0].length-1
+                        start += result_inline_comment[0].length
                         continue
                     result_multiple_line_comment = @regex.multiple_line_comment.exec query.slice i
                     if result_multiple_line_comment?
                         result_query += query.slice(start, i).replace(/\n/g, '\\\\n')
                         start = i
-                        to_skip = result_multiple_line_comment[0].length
+                        to_skip = result_multiple_line_comment[0].length-1
+                        start += result_multiple_line_comment[0].length
                         continue
             if is_parsing_string
                 result_query += query.slice(start, i).replace(/\n/g, '\\\\n')

            for char, i in query
                if to_skip > 0
                    to_skip--
                    start++
                    continue

                if is_parsing_string is true

                full_query += @queries[@index]

                try
                    rdb_query = @evaluate(full_query)
                catch err
                    @.$('.loading_query_img').hide()
