randy3k / AlignTab

An alignment plugin for Sublime Text using regular expression
MIT License
631 stars 25 forks source link

Do not spawn the Table Mode Across new new lines #80

Closed evandrocoan closed 6 years ago

evandrocoan commented 6 years ago

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
randy3k commented 6 years ago

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.

evandrocoan commented 6 years ago

Thanks