Stop parsing __asm__.
This commit is contained in:
parent
666e1b4636
commit
885d0d3d33
3 changed files with 1 additions and 10 deletions
|
@ -11,7 +11,7 @@ elseif exists("b:current_syntax")
|
||||||
endif
|
endif
|
||||||
|
|
||||||
syn match rustAssert "\<assert\(\w\)*"
|
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 copy do drop else extern
|
||||||
syn keyword rustKeyword for if impl let log
|
syn keyword rustKeyword for if impl let log
|
||||||
syn keyword rustKeyword loop match mod once priv pub pure
|
syn keyword rustKeyword loop match mod once priv pub pure
|
||||||
|
|
|
@ -1184,14 +1184,6 @@ pub impl Parser {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
hi = self.span.hi;
|
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") {
|
} else if self.eat_keyword(&~"log") {
|
||||||
self.expect(&token::LPAREN);
|
self.expect(&token::LPAREN);
|
||||||
let lvl = self.parse_expr();
|
let lvl = self.parse_expr();
|
||||||
|
|
|
@ -488,7 +488,6 @@ pub fn temporary_keyword_table() -> HashMap<~str, ()> {
|
||||||
pub fn strict_keyword_table() -> HashMap<~str, ()> {
|
pub fn strict_keyword_table() -> HashMap<~str, ()> {
|
||||||
let words = HashMap();
|
let words = HashMap();
|
||||||
let keys = ~[
|
let keys = ~[
|
||||||
~"__asm__",
|
|
||||||
~"as", ~"assert",
|
~"as", ~"assert",
|
||||||
~"break",
|
~"break",
|
||||||
~"const", ~"copy",
|
~"const", ~"copy",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue