Fork me on GitHub
#parinfer
<
2016-08-13
>
bstahlman02:08:37

Was reading section on "Adding parinfer to an editor" (on npmjs site), and was wondering about 5. Use Tab Stops: specifically, the handling of indent/dedent. What seemed odd to me is that the unin/de-dented text is passed to the indentMode function in step 1, and there's nothing that would recalculate parens once you've applied the indent/dedent in step 2. Why doesn't the indent/dedent need to be performed prior to the call to indentMode?