From 2bc8e5f74cdfca319f04ac2e6c13d04c05059137 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sun, 21 Sep 2025 16:06:58 -0400 Subject: Deprecate `extern` keyword --- src/formatter/formatter.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'src/formatter/formatter.c') diff --git a/src/formatter/formatter.c b/src/formatter/formatter.c index d37e2545..a07b903d 100644 --- a/src/formatter/formatter.c +++ b/src/formatter/formatter.c @@ -120,7 +120,6 @@ OptionalText_t format_inline_code(ast_t *ast, Table_t comments) { /*inline*/ case FunctionDef: /*inline*/ case ConvertDef: /*inline*/ case DocTest: - /*inline*/ case Extern: return NONE_TEXT; /*inline*/ case Assert: { DeclareMatch(assert, ast, Assert); @@ -580,10 +579,6 @@ Text_t format_code(ast_t *ast, Table_t comments, Text_t indent) { DeclareMatch(extend, ast, Extend); return Texts("lang ", Text$from_str(extend->name), format_namespace(extend->body, comments, indent)); } - /*multiline*/ case Extern: { - DeclareMatch(ext, ast, Extern); - return Texts("extern ", Text$from_str(ext->name), " : ", format_type(ext->type)); - } /*multiline*/ case Defer: return Texts("defer ", format_namespace(Match(ast, Defer)->body, comments, indent)); /*multiline*/ case List: { -- cgit v1.2.3