From: Naftoli Gugenheim <98384+nafg@users.noreply.github.com> Date: Sun, 17 Jul 2022 19:19:07 +0000 (-0400) Subject: scala.yaml: add support for .sc extension (#2452) X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=6aa3ea70dc9b48182e708a244afd3e037f786830;p=micro.git scala.yaml: add support for .sc extension (#2452) It's used for Ammonite scripts and Scala worksheets --- diff --git a/runtime/syntax/scala.yaml b/runtime/syntax/scala.yaml index c6685d94..b0348740 100644 --- a/runtime/syntax/scala.yaml +++ b/runtime/syntax/scala.yaml @@ -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"