mirror of
https://github.com/maaslalani/slides.git
synced 2026-01-07 21:43:58 -05:00
add scala support using scala-cli (#298)
This commit is contained in:
committed by
GitHub
parent
613276a80f
commit
db69fde19b
@@ -180,3 +180,15 @@ void main() {
|
||||
```v
|
||||
println('Hello, world!')
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
### Scala
|
||||
|
||||
```scala
|
||||
//> using dep com.lihaoyi::pprint:0.8.1
|
||||
|
||||
object Main extends App {
|
||||
println("Hello")
|
||||
}
|
||||
```
|
||||
|
||||
@@ -34,6 +34,7 @@ const (
|
||||
Swift = "swift"
|
||||
Dart = "dart"
|
||||
V = "v"
|
||||
Scala = "scala"
|
||||
)
|
||||
|
||||
// Languages is a map of supported languages with their extensions and commands
|
||||
@@ -119,4 +120,8 @@ var Languages = map[string]Language{
|
||||
Extension: "v",
|
||||
Commands: cmds{{"v", "run", "<file>"}},
|
||||
},
|
||||
Scala: {
|
||||
Extension: "sc",
|
||||
Commands: cmds{{"scala-cli", "run", "<file>"}},
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user