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
When inside a multi-line string (like a doc string), julia-mode allows you to manually indent. This is useful for writing signatures in doc strings. With julia-ts-mode, indentation is locked to the beginning of the line of the parent (I think).
For example, in the following case, with point represented by |, trying to indent just keeps point where it's at.
functionfoo()
x =""" |"""end
The text was updated successfully, but these errors were encountered:
Hum, the problem is that the node inside this is just (string_literal). I have no ideia how can we improve this. Ideas?
Re-reading the parser-based indentation info page, I don't see any escape hatch to do a manual tab. I suppose we'd have to bind a special function to TAB that first checks if we are in a string literal, at which point it inserts a tab/spaces, and then otherwise allows the tree sitter indentation to proceed...
Ah, btw, the fact that you cannot even increase the indentation is related to this issue:
When inside a multi-line string (like a doc string), julia-mode allows you to manually indent. This is useful for writing signatures in doc strings. With julia-ts-mode, indentation is locked to the beginning of the line of the parent (I think).
For example, in the following case, with point represented by |, trying to indent just keeps point where it's at.
The text was updated successfully, but these errors were encountered: