Fix inheriting indentation containing tabs #7
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "auto-indent-tabs"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Pressing Enter key on a line indented with tabs would previously indent the new line with one space for each tab, contrary to what the reference says:
This made using many
StreamLanguages with tabs annoying, requiring to define a customindentServicefacet.This does not help with mixed indentation (e.g. tabs for indentation + spaces for alignment) but proper support for that would probably require changes to
@codemirror/language. People who need it can always implement it later.Thanks for spotting that. Counting indentation for tabs is a little more complicated than that, but this file is already importing a utility for that purpose, so attached patch makes it use that.
Pull request closed