Merge pull request #338 from Masynchin/master

Fix indented case in given
pull/659/head
eugene yokota 2023-08-16 14:07:26 +07:00 committed by GitHub
commit 5d1a186079
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 4 deletions

@ -1226,6 +1226,8 @@ object A:
given Context[T] = ctx
given Foo[Int] =
case n => "123"
--------------------------------------------------------------------------------
@ -1332,7 +1334,16 @@ object A:
(type_identifier)
(type_arguments
(type_identifier)))
(identifier)))))
(identifier))
(given_definition
(generic_type
(type_identifier)
(type_arguments
(type_identifier)))
(indented_cases
(case_clause
(identifier)
(string)))))))
================================================================================
Top-level Definitions (Scala 3 syntax)
@ -1599,8 +1610,9 @@ inline given Test =
(modifiers
(inline_modifier))
(type_identifier)
(instance_expression
(type_identifier))))
(indented_block
(instance_expression
(type_identifier)))))
================================================================================
Infix methods (Scala 3)

@ -589,7 +589,7 @@ module.exports = grammar({
seq(
field("return_type", $._annotated_type),
"=",
field("body", $.expression),
field("body", $._indentable_expression),
),
),
),