- % there is an optional sequence of groups with id, all of which having one and only one child. The last
- % child of this sequence (or the root, if the sequence is empty) is a group with id, has as first element a
- % token and has as second and last element an eventually empty sequence of groups with id, all of which having
- %one and only one child. The last element of this sequence has the cursor as its child.
- \item{\verb+(g[@id][^#$]/++\verb+)?g[@id][^(i|n|o|s|c[ ])#$]/(g[@id][^#$]/++\verb+)?cursor+}\\
- replace the whole fragment with the cursor.
+ \item{\verb+<g|p>[(i|n|o|s|c[ ])#]/(g[@id][^#$]/++\verb+)?cursor+}\\
+ remove the cursor (and eventually the sequence of \G{} nodes with attribute \texttt{id}) and replace the token with the $\RGROUP$.
+
+ \item{\verb+<g|p>[g#]/(g[@id][^#$]/++\verb+)?cursor+}\\
+ remove the cursor (and eventually the sequence of \G{} nodes with attribute \texttt{id}) and append $\NLDG$ to the \G{} node preceding the cursor
+
+ %% there is an optional sequence of groups with id, all of which having one and only one child. The last
+ %% child of this sequence (or the root, if the sequence is empty) is a group with id, has as first element a
+ %% token and has as second and last element an eventually empty sequence of groups with id, all of which having
+ %%one and only one child. The last element of this sequence has the cursor as its child.
+ %\item{\verb+(g[@id][^#$]/++\verb+)?g[@id][^(i|n|o|s|c[ ])#$]/(g[@id][^#$]/++\verb+)?cursor+}\\
+ %replace the whole fragment with the cursor.