2869 nextChar == $_ ifTrue:[ |
2869 nextChar == $_ ifTrue:[ |
2870 self warnUnderscoreAt:source position1Based. |
2870 self warnUnderscoreAt:source position1Based. |
2871 ] ifFalse:[ |
2871 ] ifFalse:[ |
2872 self warnPeriodAt:source position1Based. |
2872 self warnPeriodAt:source position1Based. |
2873 ]. |
2873 ]. |
2874 [(nextChar == $_) or:[nextChar == $.]] whileTrue:[ |
2874 [(nextChar == $_) or:[(allowPeriodInSymbol and:[nextChar == $.])]] whileTrue:[ |
2875 string := string copyWith:nextChar. |
2875 string := string copyWith:nextChar. |
2876 nextChar := source nextPeek. |
2876 nextChar := source nextPeek. |
2877 (nextChar notNil and:[nextChar isLetterOrDigit]) ifTrue:[ |
2877 (nextChar notNil and:[nextChar isLetterOrDigit]) ifTrue:[ |
2878 string := string , source nextAlphaNumericWord. |
2878 string := string , source nextAlphaNumericWord. |
2879 nextChar := source peek. |
2879 nextChar := source peek. |
2880 ] ifFalse:[ |
2880 ] ifFalse:[ |
2881 string last == $. ifTrue:[ |
2881 (allowPeriodInSymbol and:[string last == $.]) ifTrue:[ |
2882 peekChar := nextChar. |
2882 peekChar := nextChar. |
2883 nextChar := $.. |
2883 nextChar := $.. |
2884 string := string copyWithoutLast:1. |
2884 string := string copyWithoutLast:1. |
2885 tokenValue := token := string asSymbol. |
2885 tokenValue := token := string asSymbol. |
2886 tokenType := #Symbol. |
2886 tokenType := #Symbol. |