ChrisThomas

Profiles.ChrisThomas History

Hide minor edits - Show changes to markup

June 10, 2006, at 04:23 UTC by Chris T -
Changed lines 1-21 from:

Mac software developer; TextMate fan.

Performed major surgery on the C/Objective-C/C++/Unix makefile syntaxes for TextMate 1.0.1/1.0.2.

Created syntax bundles for:

  • Old-style plist
  • Inform
  • Ada
  • Fortran
  • Pascal

I've been wanting to ask you, why did you remove size_t from the initial C/C++ syntax? -- Allan Odgaard

In general, my rule of thumb is: only highlight language keywords. size_t is not a keyword, it's a library typedef. And, if you go the route of highlighting standard library typedefs, you run into a problem with orthogonality: if you highlight size_t, why not, for example, va_list or "struct tm" -- I think the case is stronger for va_list than for size_t, in fact. At some point you start to collide with user code. The user might not use the standard C library, or might use identical typdef names for a different purpose.

I also find it weird to highlight size_t, but that's just me. :) -- Chris

to:

Mac software developer; TextMate fan.

January 01, 2005, at 06:22 UTC by ChrisT -
Changed lines 15-21 from:
to:

-- Allan Odgaard

In general, my rule of thumb is: only highlight language keywords. size_t is not a keyword, it's a library typedef. And, if you go the route of highlighting standard library typedefs, you run into a problem with orthogonality: if you highlight size_t, why not, for example, va_list or "struct tm" -- I think the case is stronger for va_list than for size_t, in fact. At some point you start to collide with user code. The user might not use the standard C library, or might use identical typdef names for a different purpose.

I also find it weird to highlight size_t, but that's just me. :) -- Chris

December 22, 2004, at 22:37 UTC by Allan Odgaard -
Added lines 12-15:

I've been wanting to ask you, why did you remove size_t from the initial C/C++ syntax? -- Allan Odgaard

December 22, 2004, at 18:32 UTC by ChrisT -
Changed lines 1-2 from:

Mac software developer.

to:

Mac software developer; TextMate fan.

December 22, 2004, at 18:32 UTC by ChrisT -
Added lines 1-11:

Mac software developer.

Performed major surgery on the C/Objective-C/C++/Unix makefile syntaxes for TextMate 1.0.1/1.0.2.

Created syntax bundles for:

  • Old-style plist
  • Inform
  • Ada
  • Fortran
  • Pascal