Re: [Flex-devel] Bad source code formatting in flex sources
flex is a tool for generating scanners
Brought to you by:
wlestes
From: Will E. <wl...@us...> - 2008-10-12 22:30:35
|
Joe/Aaron, The tab/space confusion is probably not something intentional. Yes, it should be cleaned up, and there is some infrastructure in the Makefiles, but it's not been thought about in a long time, so who knows how good it is. On Wednesday, 8 October 2008, 10:37 am -0700, Aaron Stone <aa...@se...> wrote: > I noticed this, too, but didn't want to disrupt the code too much. > > Will is the maintainer, and John was the last most active coder -- any > thoughts on this? > > Aaron > > > On Oct 8, 2008, at 7:25 AM, Joe Krahn wrote: > > > I noticed that most of the code uses tabs instead of spaces, but a lot > > of code seems to use spaces for indentation that aligns with a tabstop > > size of 4. I see that this is actually due to a Vim hint placed at the > > bottom of Flex's source files that includes "expandtabs tabstop=4". > > > > So, this line results in vim users (including myself) to slowly > > corrupt > > the formatting style, which is unexpanded tabs. I like an indentation > > level of 4 spaces with expandtabs, but I think it is better to keep > > tab > > stops at the default of 8. Either way is fine with me, as long as it > > is > > consistent. (It would be a lot worse if this was Python source.) > > > > Joe Krahn > > > > ------------------------------------------------------------------------- > > This SF.Net email is sponsored by the Moblin Your Move Developer's > > challenge > > Build the coolest Linux based applications with Moblin SDK & win > > great prizes > > Grand prize is a trip for two to an Open Source event anywhere in > > the world > > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > > _______________________________________________ > > Flex-devel mailing list > > Fle...@li... > > https://lists.sourceforge.net/lists/listinfo/flex-devel > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Flex-devel mailing list > Fle...@li... > https://lists.sourceforge.net/lists/listinfo/flex-devel > -- Will Estes (wl...@us...) Flex Project Maintainer http://flex.sourceforge.net/ |