Diff of /tagmanager/ctags/rust.c [16d9bb] .. [52a179] Maximize Restore

  Switch to side-by-side view

--- a/tagmanager/ctags/rust.c
+++ b/tagmanager/ctags/rust.c
@@ -67,6 +67,7 @@
 	TOKEN_IDENT,
 	TOKEN_LSHIFT,
 	TOKEN_RSHIFT,
+	TOKEN_RARROW,
 	TOKEN_EOF
 } tokenType;
 
@@ -129,6 +130,9 @@
 		case TOKEN_RSHIFT:
 			vStringCatS(out_str, ">>");
 			break;
+		case TOKEN_RARROW:
+			vStringCatS(out_str, "->");
+			break;
 		default:
 			vStringPut(out_str, (char) lexer->cur_token);
 	}
@@ -355,6 +359,11 @@
 		{
 			advanceNChar(lexer, 2);
 			return lexer->cur_token = TOKEN_LSHIFT;
+		}
+		else if (lexer->cur_c == '-' && lexer->next_c == '>')
+		{
+			advanceNChar(lexer, 2);
+			return lexer->cur_token = TOKEN_RARROW;
 		}
 		else
 		{