From 3584f0ca574a5cbf6aa77847ac1c29f8d6c71e08 Mon Sep 17 00:00:00 2001 From: Yingchi Long Date: Sun, 17 Sep 2023 15:27:33 +0800 Subject: [PATCH] nixd/Syntax: format oneline --- nixd/lib/Syntax/Parser/Parser.y | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/nixd/lib/Syntax/Parser/Parser.y b/nixd/lib/Syntax/Parser/Parser.y index 1155a8bd7..c3be2912d 100644 --- a/nixd/lib/Syntax/Parser/Parser.y +++ b/nixd/lib/Syntax/Parser/Parser.y @@ -276,12 +276,8 @@ expr_simple | '[' expr_list ']' string_parts - : string { - $$ = $1; - } - | string_parts_interpolated { - $$ = $1; - } + : string { $$ = $1; } + | string_parts_interpolated { $$ = $1; } string_parts_interpolated @@ -451,9 +447,7 @@ attrpath attr - : identifier { - $$ = $1; - } + : identifier { $$ = $1; } | OR_KW { auto Or = Data->State.Symbols.create("or"); $$ = decorateNode(new Identifier {