Implemented proper Token detection.
Added newline as a symbol because it is relevant in QML and JS.