Created
November 9, 2022 00:17
-
-
Save kubukoz/894b049b5c1747f17c1e052754640b32 to your computer and use it in GitHub Desktop.
git conflicts parsing as 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
object main extends App { | |
object <<<<<<< { | |
def HEAD(s: String) = this | |
} | |
implicit class StringOps(s: String) { | |
def =======(i: Int) = s | |
def >>>>>>>(i: Int) = i | |
} | |
val git1 = 42 | |
val a = 10 | |
println( | |
<<<<<<< HEAD | |
"qux" | |
======= | |
"bar" | |
>>>>>>> git1-a | |
) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment