I have created a new lexer for n3/turtle and will be adding SPARQL to the package.
A more complete description including trac and svn access to it are at:
Do with it what you wish.
Any Semantic web hackers should contact me about extending this area with better n3 support (right now it is pretty much the turtle subset) and or SPARQL support.
Reported by guest