Listings is pretty bad at recognizing functions etc. A workaround could be to pass Julia's symbols from `Main` into the listings keywords.