randy3k / AlignTab

An alignment plugin for Sublime Text using regular expression

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Do not spawn the Table Mode Across new new lines

evandrocoan opened this issue · comments

For example:

back3

It keeps repeatedly aligning with the other pipe | several lines below it. It should stop after new empty lines are found, and only align with the lines on its current block, i.e., lines which are together and not separated by new lines.

a) L(G) = { a^n b^m| n, m ≥ 0 ∧ n ≠ m}

S  -> AI BP         | AP BI                        | A | B | #epsilon
A  -> a             | a A
B  -> b             | b B
AI -> a             | aa AI
BI -> b             | bb BI
AP -> aa            | aa AP
BP -> bb            | bb BP


b) L(G) = { a^n b^m | n, m ≥ 0 ∧ n + m seja ímpar}

A  -> a     | a A
B  -> b     | b B
AI -> a     | aa AI
BI -> b     | bb BI
AP -> aa    | aa AP
BP -> bb    | bb BP

It is by design. If you enter table mode and edit several blocks without leaving the model, the blocks will be aligned at the same time. To resolve your issue, you have to exit the table mode after editing the first table; reenter the table mode before editing the second table.

Thanks