-
Notifications
You must be signed in to change notification settings - Fork 284
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Diet template does not support soft tab indent #3
Comments
My idea was to avoid the problems you can get with mixed tabs/spaces by just allowing tabs. But you made me think that maybe detecting the type of indentation (tabs or N spaces) at the first indented line would be a good alternative. All following lines would then be forced to use the same indentation style. |
Yes, detecting indentation by the first indented line, it's exactly what I wanted :) Python syntax does this too |
This is now implemented with d7ac37b. |
diet.d(747): Error: cannot implicitly convert expression (cast(ulong)l / indent.length) of type ulong to int |
When using soft tab (2 spaces as a tab) with index.jd, like:
vibe complains about
I think its because diet does not recognize soft tab as an indent and regards
h1 Example ...
as a new block, hence the error.Should that be supported? I found that jade-lang.org are using soft tab in there examples
The text was updated successfully, but these errors were encountered: