We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 20af2f6 commit 434f9c6Copy full SHA for 434f9c6
lib/rdoc/ruby_lex.rb
@@ -948,7 +948,12 @@ def identify_identifier
948
@indent_stack.push token_c
949
end
950
else
951
- token_c = TkIDENTIFIER
+ if peek(0) == ':'
952
+ token.concat getc
953
+ token_c = TkSYMBOL
954
+ else
955
+ token_c = TkIDENTIFIER
956
+ end
957
958
959
elsif DEINDENT_CLAUSE.include?(token)
@@ -981,7 +986,12 @@ def identify_identifier
981
986
elsif token[token.size - 1, 1] =~ /[!?]/
982
987
return Token(TkFID, token)
983
988
984
- return Token(TkIDENTIFIER, token)
989
990
991
+ return Token(TkSYMBOL, token)
992
993
+ return Token(TkIDENTIFIER, token)
994
985
995
996
997
0 commit comments