From 57ffa2a487ef12a4abf538efc2dd8192ca308271 Mon Sep 17 00:00:00 2001 From: Marijn Haverbeke Date: Fri, 13 May 2011 21:30:08 +0200 Subject: Make the parser more careful about keywords Keywords are now only recognized in contexts where they are valid. The lexer no longer recognizes them, all words are lexed as IDENT tokens, that get interpreted by the parser. --- src/comp/rustc.rc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/comp/rustc.rc') diff --git a/src/comp/rustc.rc b/src/comp/rustc.rc index ca5534b3..0267084e 100644 --- a/src/comp/rustc.rc +++ b/src/comp/rustc.rc @@ -73,7 +73,7 @@ mod lib { mod llvm; } } - else { + case (_) { let (llvm_lib = "librustllvm.so") { mod llvm; } -- cgit v1.2.3