Updated

Linsanity has reached Canada.

Jeremy Lin knocked down a game-winning three-pointer with 0.5 seconds left Tuesday night, lifting the New York Knicks to a 90-87 comeback win over the Toronto Raptors at Air Canada Centre.

Lin scored 27 points with a career-high 11 assists and now has 136 points in his first five games as a starter, eclipsing Shaquille O'Neal's 129 for the most since the NBA/ABA merger.

Amare Stoudemire added 21 points and nine rebounds in his first game back after missing four straight to mourn the death of his brother.

The Knicks have won six straight games, all with big contributions from Lin, and are above .500 for the first time since they were 6-5 following a loss at Memphis on January 12.

Jose Calderon paced the Raptors with 25 points, nine assists, and seven rebounds. Linas Kleiza had a double-double with 15 points and 11 boards and DeMar DeRozan added 14 points for the Raptors, who have lost five of their last six games.