DokuWiki uses geshi [1] for syntax highlighting. Please forward this to the geshi devs, however, I think this won't get fixed that easily because I doubt that geshi knows/cares about the "context" of a reserved keyword. I suggest you use sth. like "fn" or "filename" instead.
[1]
http://qbnz.com/highlighter/