-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add top level rule for identifiers inside the backticks
- Loading branch information
Showing
5 changed files
with
101 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
|
||
object `Backtics test` { | ||
val x = MediaRange.`*/*` | ||
|
||
val y = `MediaRange`.`*/*` | ||
|
||
val z = `Media Range` | ||
|
||
def `*/*`(`a b`: `C D`): `e f` = ??? | ||
|
||
|
||
|
||
val `*/*` = 5 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
> | ||
>object `Backtics test` { | ||
#^^^^^^ source.scala keyword.declaration.scala | ||
# ^ source.scala | ||
# ^^^^^^^^^ source.scala entity.name.class.declaration | ||
# ^^^^^^^ source.scala | ||
# ^ source.scala punctuation.section.block.begin.scala | ||
> val x = MediaRange.`*/*` | ||
#^^^^ source.scala | ||
# ^^^ source.scala keyword.declaration.stable.scala | ||
# ^ source.scala | ||
# ^ source.scala variable.other.declaration.scala | ||
# ^ source.scala | ||
# ^ source.scala keyword.operator.comparison.scala | ||
# ^ source.scala | ||
# ^^^^^^^^^^ source.scala entity.name.class | ||
# ^ source.scala | ||
# ^^^^^ source.scala | ||
> | ||
> val y = `MediaRange`.`*/*` | ||
#^^^^ source.scala | ||
# ^^^ source.scala keyword.declaration.stable.scala | ||
# ^ source.scala | ||
# ^ source.scala variable.other.declaration.scala | ||
# ^ source.scala | ||
# ^ source.scala keyword.operator.comparison.scala | ||
# ^ source.scala | ||
# ^^^^^^^^^^^^ source.scala | ||
# ^ source.scala | ||
# ^^^^^ source.scala | ||
> | ||
> val z = `Media Range` | ||
#^^^^ source.scala | ||
# ^^^ source.scala keyword.declaration.stable.scala | ||
# ^ source.scala | ||
# ^ source.scala variable.other.declaration.scala | ||
# ^ source.scala | ||
# ^ source.scala keyword.operator.comparison.scala | ||
# ^ source.scala | ||
# ^^^^^^^^^^^^^ source.scala | ||
> | ||
> def `*/*`(`a b`: `C D`): `e f` = ??? | ||
#^^^^ source.scala | ||
# ^^^ source.scala keyword.declaration.scala | ||
# ^ source.scala | ||
# ^^^^^ source.scala entity.name.function.declaration | ||
# ^ source.scala meta.bracket.scala | ||
# ^^^^^ source.scala variable.parameter.scala | ||
# ^ source.scala meta.colon.scala | ||
# ^ source.scala | ||
# ^^^^^ source.scala | ||
# ^ source.scala meta.bracket.scala | ||
# ^ source.scala keyword.operator.scala | ||
# ^ source.scala | ||
# ^^^^^ source.scala | ||
# ^ source.scala | ||
# ^ source.scala keyword.operator.comparison.scala | ||
# ^ source.scala | ||
# ^^^ source.scala keyword.operator.scala | ||
> | ||
> | ||
> | ||
> val `*/*` = 5 | ||
#^^^^ source.scala | ||
# ^^^ source.scala keyword.declaration.stable.scala | ||
# ^ source.scala | ||
# ^^^^^ source.scala variable.other.declaration.scala | ||
# ^ source.scala | ||
# ^ source.scala keyword.operator.comparison.scala | ||
# ^ source.scala | ||
# ^ source.scala constant.numeric.scala | ||
> } | ||
#^ source.scala | ||
# ^ source.scala punctuation.section.block.end.scala |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters