Skip to content

Commit 885d0d3

Browse files
committed
Stop parsing __asm__.
1 parent 666e1b4 commit 885d0d3

File tree

3 files changed

+1
-10
lines changed

3 files changed

+1
-10
lines changed

src/etc/vim/syntax/rust.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ elseif exists("b:current_syntax")
1111
endif
1212

1313
syn match rustAssert "\<assert\(\w\)*"
14-
syn keyword rustKeyword __asm__ as break
14+
syn keyword rustKeyword as break
1515
syn keyword rustKeyword copy do drop else extern
1616
syn keyword rustKeyword for if impl let log
1717
syn keyword rustKeyword loop match mod once priv pub pure

src/libsyntax/parse/parser.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1184,14 +1184,6 @@ pub impl Parser {
11841184
}
11851185
}
11861186
hi = self.span.hi;
1187-
} else if self.eat_keyword(&~"__asm__") {
1188-
self.expect(&token::LPAREN);
1189-
let asm = self.parse_str();
1190-
self.expect(&token::COMMA);
1191-
let cons = self.parse_str();
1192-
ex = expr_inline_asm(asm, cons);
1193-
hi = self.span.hi;
1194-
self.expect(&token::RPAREN);
11951187
} else if self.eat_keyword(&~"log") {
11961188
self.expect(&token::LPAREN);
11971189
let lvl = self.parse_expr();

src/libsyntax/parse/token.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,6 @@ pub fn temporary_keyword_table() -> HashMap<~str, ()> {
488488
pub fn strict_keyword_table() -> HashMap<~str, ()> {
489489
let words = HashMap();
490490
let keys = ~[
491-
~"__asm__",
492491
~"as", ~"assert",
493492
~"break",
494493
~"const", ~"copy",

0 commit comments

Comments
 (0)