浏览代码

Fix `core:odin/parser` not setting the inline flag correctly.

Daniel Gavin 3 年之前
父节点
当前提交
4dc29d141f
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      core/odin/parser/parser.odin

+ 2 - 2
core/odin/parser/parser.odin

@@ -2168,7 +2168,7 @@ parse_inlining_operand :: proc(p: ^Parser, lhs: bool, tok: tokenizer.Token) -> ^
 	}
 
 	switch e in &ast.unparen_expr(expr).derived {
-	case ast.Proc_Lit:
+	case ast.Proc_Lit:		
 		if e.inlining != .None && e.inlining != pi {
 			error(p, expr.pos, "both 'inline' and 'no_inline' cannot be applied to a procedure literal")
 		}
@@ -2319,7 +2319,7 @@ parse_operand :: proc(p: ^Parser, lhs: bool) -> ^ast.Expr {
 			return rt
 
 		case "force_inline", "force_no_inline":
-			return parse_inlining_operand(p, lhs, tok)
+			return parse_inlining_operand(p, lhs, name)
 		case:
 			expr := parse_expr(p, lhs)
 			te := ast.new(ast.Tag_Expr, tok.pos, expr.pos)