diff options
| author | Marijn Haverbeke <[email protected]> | 2011-05-13 21:30:08 +0200 |
|---|---|---|
| committer | Marijn Haverbeke <[email protected]> | 2011-05-13 22:00:13 +0200 |
| commit | 57ffa2a487ef12a4abf538efc2dd8192ca308271 (patch) | |
| tree | f3a82a1076c93c6ad6200391cc838cf2e7e6999d /src/lib/std.rc | |
| parent | rustc: Fix the type of node_types; stub the write_type function (diff) | |
| download | rust-57ffa2a487ef12a4abf538efc2dd8192ca308271.tar.xz rust-57ffa2a487ef12a4abf538efc2dd8192ca308271.zip | |
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.
Diffstat (limited to 'src/lib/std.rc')
| -rw-r--r-- | src/lib/std.rc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/std.rc b/src/lib/std.rc index 5c0ea313..6e2650e6 100644 --- a/src/lib/std.rc +++ b/src/lib/std.rc @@ -51,7 +51,7 @@ alt (target_os) { } case ("macos") { mod os = "macos_os.rs"; mod os_fs = "posix_fs.rs"; - } else { + } case (_) { mod os = "linux_os.rs"; mod os_fs = "posix_fs.rs"; } |