indentation with tabs ?

22 views
Skip to first unread message

Marc MICHEL

unread,
Jun 24, 2013, 4:37:25 PM6/24/13
to pogos...@googlegroups.com
Hello all,

I scratched my head for... too long before realizing that indentation is ignoring tabs.

Is this intended behavior ?

Tim Macfarlane

unread,
Jun 24, 2013, 4:46:43 PM6/24/13
to Marc MICHEL, pogos...@googlegroups.com
First of all, sorry!

This is intended because its not clear how many spaces are in a tab, which is a problem when you mix tabs and spaces together (I think I recall python not being able to do this very well, but it's been a while.) So I went for strict spaces only indentation. As it happens the vim and textmate/sublime modes make tabs big and red as a warning. Unfortunately the parser gives no hint so I'm very sorry if you spent a lot of time wondering what was going on!

Feel free to add an issue on GitHub for a better error message though.
--
You received this message because you are subscribed to the Google Groups "pogoscript" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pogoscript+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Marc MICHEL

unread,
Jun 24, 2013, 5:13:55 PM6/24/13
to pogos...@googlegroups.com, Marc MICHEL
Got it. I'll try to hammer my space bar gently, then :)

Tanks for the quick reply.
And congrats for this neat language !
Reply all
Reply to author
Forward
0 new messages