check integer literal in vistor

This pr targets (SCL-874)[https://youtrack.jetbrains.com/issue/SCL-7874].
It also checks the octal number in different Scala versions.
The test cases don't cover octal number check which is simple and direct logic.


these function is ported from scala's  nsc/ast/parser/Scanner.scala. Do we need to worry about the license?