Skip to content

Commit

Permalink
Scanning for end of symbol now done correctly in ddemangle.
Browse files Browse the repository at this point in the history
  • Loading branch information
michelf committed Jul 7, 2011
1 parent d9ac1c6 commit 8de843d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ddemangle.d
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,10 @@ to standard output.");
state = State.searching_;
break;
case State.searchingEnd:
if (c == ' ' || c == '"' || c == '\'')
if (!(c >= 'a' && c <= 'z') &&
!(c >= 'A' && c <= 'Z') &&
!(c >= '0' && c <= '9') &&
c != '_')
{
endIdx = i;
state = State.done;
Expand Down

0 comments on commit 8de843d

Please sign in to comment.