On Oct 16, 2008, at 3:20 PM, Brice Figureau wrote:
>
> I found why git cares:
>
> ISO C++ Standard says:
>
> 2.1/1.2 "If a source file that is not empty does not end in a new-line
> character, or ends in a new-line character immediately preceded by a
> backslash character, the behavior is undefined".

Yay undefined behaviour.

>
> Since the parser you wrote does seem immune, I think we're safe, but
> I'll try to pay attention to this from now on.
> Hum, I'm wondering if I can update the ruby and puppet textmate bundle
> to highlight the end of file if there is no newline.
>
> Now that I think about it, I also have to check that my pupet textmate
> bundle supports all the additions I made to the puppet language :-(

The vim syntax file that I wrote years ago could use some love, too,  
if anyone feels like taking a crack at it.  E.g., the '$' in  
definition prototypes is a different color than the variable names,  
because they weren't used when I wrote the syntax file.

-- 
Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are, by
definition, not smart enough to debug it.
     -- (attributed to) Brian W. Kernighan (unconfirmed)
---------------------------------------------------------------------
Luke Kanies | http://reductivelabs.com | http://madstop.com


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Puppet Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/puppet-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to