[verb (dictionary form)] + 限り [verb て-form] + いる + 限り [verb ない-form] + 限り [verb た-form] + 限り [i-adj] + 限り [na-adj] + な / である + 限り [noun] + である + 限り [noun] + の + 限り
限り after a verb or an adjective sets a condition that has to keep holding: "as long as". It follows the dictionary form or the ている form of a verb, an い-adjective directly, a な-adjective with な or である, and a noun with である.
A noun takes である, not だ: ×学生だ限り. As a condition, 限り sounds firm and a little formal; in conversation "as long as" is just as often なら, or さえ with a ば-form.
After the ない-form, 限り means "unless": nothing changes until that condition is met. The main clause is often negative.
With a verb of knowing or seeing, 限り narrows the statement down to what the speaker knows. The verb is in the ている or た-form, and では often follows. In a formal sentence the person takes の instead of が: わたくし私のしる知るかぎり限り.
These go beyond "as long as".
Straight after a word for a time, 限り means "only" or "ending with": きょう今日かぎり限り "today only", こんかい今回かぎり限り "this time only". The same meaning with に in front, にかぎり限り, is its own grammar point.