Created
March 22, 2017 08:50
-
-
Save Interfere/e3428b95d33f4c9455b13f59c3db7e70 to your computer and use it in GitHub Desktop.
Comments
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
case '/': | |
if (CurPtr[0] == '/') { | |
// treat single-line comment "//" as whitespace | |
skipSlashSlashComment(); | |
goto Restart; | |
} | |
if (CurPtr[0] == '*') { | |
// treat multi-line comment "/*" as whitespace | |
skipSlashStarComment(); | |
goto Restart; | |
} | |
// otherwise | |
return lexOperatorIdentifier(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment