提交 885d0d3d 编写于 作者: L Luqman Aden

Stop parsing __asm__.

上级 666e1b46
......@@ -11,7 +11,7 @@ elseif exists("b:current_syntax")
endif
syn match rustAssert "\<assert\(\w\)*"
syn keyword rustKeyword __asm__ as break
syn keyword rustKeyword as break
syn keyword rustKeyword copy do drop else extern
syn keyword rustKeyword for if impl let log
syn keyword rustKeyword loop match mod once priv pub pure
......
......@@ -1184,14 +1184,6 @@ fn parse_bottom_expr(&self) -> @expr {
}
}
hi = self.span.hi;
} else if self.eat_keyword(&~"__asm__") {
self.expect(&token::LPAREN);
let asm = self.parse_str();
self.expect(&token::COMMA);
let cons = self.parse_str();
ex = expr_inline_asm(asm, cons);
hi = self.span.hi;
self.expect(&token::RPAREN);
} else if self.eat_keyword(&~"log") {
self.expect(&token::LPAREN);
let lvl = self.parse_expr();
......
......@@ -488,7 +488,6 @@ pub fn temporary_keyword_table() -> HashMap<~str, ()> {
pub fn strict_keyword_table() -> HashMap<~str, ()> {
let words = HashMap();
let keys = ~[
~"__asm__",
~"as", ~"assert",
~"break",
~"const", ~"copy",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册