Skip to content

Commit cd8f289

Browse files
Update SIPs state
1 parent 81d3ed7 commit cd8f289

File tree

1 file changed

+9
-35
lines changed

1 file changed

+9
-35
lines changed

_sips/sips/scala-cli.md

Lines changed: 9 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -624,49 +624,26 @@ As a part of this SIP we propose to introduce Using Directives, a special commen
624624
625625
Using directives can be place on only top of the file (above imports, package definition etx.) and can be proceed only by plain comments (e.g. to comment out an using directive)
626626
627-
Comments containing directives needs to start by `>`, for example:
627+
Comments containing directives needs to start by `//>`, for example:
628628
629629
```
630-
//> using Scala 3
631-
/*> using
632-
Scala 3
633-
option "-Xfatal-warning"
634-
*/
630+
//> using scala 3
631+
//> using platform scala-js
632+
//> using options -Xasync
635633
```
636634
637635
We propose following sytax for Using Directives (within special comments described above):
638636
639637
```
640-
UsingDirective ::= "using" (Setting | Settings)
641-
Settings ::= "{" Setting { ";" Setting } [";"] "}"
642-
Setting ::= Ident [Values | Settings]
643-
Ident ::= ScalaIdent { “.” ScalaIdent }
644-
Values ::= Value { "," Value} [","]
645-
Value ::= stringLiteral | ["-"] numericLiteral | true | false
638+
UsingDirective ::= "using" Setting
639+
Setting ::= Ident ( Value | Values )
640+
Ident ::= ScalaIdent { "." ScalaIdent }
641+
Values ::= Value { " " [","] Values }
642+
Value ::= Ident | stringLiteral | numericLiteral | true | false
646643
```
647644
648645
Where:
649646
650-
- A Settings block is similar to the standard Scala code block. Braces and indentation syntax is allowed. e.g.:
651-
652-
653-
```
654-
someSettings { setting1 value 1; setting2; }
655-
656-
// or
657-
658-
someSettings {
659-
setting1
660-
setting2
661-
}
662-
663-
// or
664-
665-
someSettings:
666-
setting1
667-
setting2
668-
```
669-
670647
- Ident is the standard Scala identifier or list of identifiers separated by dots:
671648
672649
```
@@ -680,9 +657,6 @@ foo.bar
680657
- String literals and numeric literals are similar to Scala.
681658
- No value after the identifier is treated as true value: `using scalaSettings.fatalWarnings`
682659
- Specifying a setting with the same path more than once and specifying the same setting with a list of values are equivalent
683-
- A path created using dot-separated idents is semantically equivalent to a path created by nesting idents:
684-
`foo.bar` is equivalent to `foo { bar }`
685-
686660
687661
The list of proposed directives split into MUST have and SHOULD have groups:
688662

0 commit comments

Comments
 (0)