]> git.lizzy.rs Git - micro.git/commitdiff
Added multiline strings to the Scala syntax highlighter (#1969)
authorMarduk Bolaños <mardukbp@mac.com>
Wed, 6 Jan 2021 00:59:28 +0000 (01:59 +0100)
committerGitHub <noreply@github.com>
Wed, 6 Jan 2021 00:59:28 +0000 (19:59 -0500)
In Scala multiline strings are constructed just like in Python

```
val message = """
This
is
a
message
"""

runtime/syntax/scala.yaml

index 1c962c5be9392ba622d90cde7e9b2844587fe814..c6685d94cf05fa03c8aabcc9f152b8805a175795 100644 (file)
@@ -7,6 +7,10 @@ rules:
     - type: "\\b(boolean|byte|char|double|float|int|long|new|short|this|transient|void)\\b"
     - statement: "\\b(match|val|var|break|case|catch|continue|default|do|else|finally|for|if|return|switch|throw|try|while)\\b"
     - statement: "\\b(def|object|case|trait|lazy|implicit|abstract|class|extends|with|final|implements|override|import|instanceof|interface|native|package|private|protected|public|static|strictfp|super|synchronized|throws|volatile|sealed)\\b"
+    - constant.string:
+        start: "\"\"\""
+        end: "\"\"\""
+        rules: []
     - constant.string:
         start: "\""
         end: "\""