Interestingly, Emacs lisp considers the literal 1. to be an integer literal, whereas most languages consider a decimal point to always mean a floating point number.
Wilfred Hughes
Shared words: literals, number, languages
Score: 53.4
I've added syntax highlighting to the prompt of my programming language!
It's not strictly necessary, but it's nice to have. It caught a bug with lexing incomplete string literals too.
Many languages use docstrings rather than doc comments: it certainly makes extracting them easier. You just parse the code.
Could you go further and require all comments to be string literals? I'm struggling to think of many downsides.