]> git.lizzy.rs Git - micro.git/commitdiff
scala.yaml: add support for .sc extension (#2452)
authorNaftoli Gugenheim <98384+nafg@users.noreply.github.com>
Sun, 17 Jul 2022 19:19:07 +0000 (15:19 -0400)
committerGitHub <noreply@github.com>
Sun, 17 Jul 2022 19:19:07 +0000 (12:19 -0700)
It's used for Ammonite scripts and Scala worksheets

runtime/syntax/scala.yaml

index c6685d94cf05fa03c8aabcc9f152b8805a175795..b0348740d328069545a0fb70057e1f84a0f7864b 100644 (file)
@@ -1,7 +1,7 @@
 filetype: scala
 
 detect:
-    filename: "\\.scala$"
+    filename: "\\.sc(ala)?$"
 
 rules:
     - type: "\\b(boolean|byte|char|double|float|int|long|new|short|this|transient|void)\\b"