You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem with the token "EQ_SUB" mentioned here arises because of the fact that expression "a = 3" and "b = 44" are not nested one level deeper, i.e. they are all direct sub-expressions of the root token:
We used compute_indent_indices() so far to compute the indices that need indention. However, with all other operators such as braces or +%>%, the indention is always from the token on until the last or the penultimate token in that parse table. Here, it is only the next token, so we could go about it as follows:
Alternatively, we had to modify compute_indent_indices(), which has already an argument indent_last. We could make that argument non-boolean and change it to indent_up_to and allow values "next", "penulatimate", "last".
The text was updated successfully, but these errors were encountered:
No, it's not treated as an operator in the sense that it is not indented with the other operators such as + with indent_op(). We have the function indent_eq_sub() but it does not account for the structure described above properly, so I suggested to modify it.
The problem with the token "EQ_SUB" mentioned here arises because of the fact that expression "a = 3" and "b = 44" are not nested one level deeper, i.e. they are all direct sub-expressions of the root token:
We used
compute_indent_indices()
so far to compute the indices that need indention. However, with all other operators such as braces or+
%>%
, the indention is always from the token on until the last or the penultimate token in that parse table. Here, it is only the next token, so we could go about it as follows:Alternatively, we had to modify
compute_indent_indices()
, which has already an argumentindent_last
. We could make that argument non-boolean and change it toindent_up_to
and allow values "next", "penulatimate", "last".The text was updated successfully, but these errors were encountered: