mirror of https://github.com/Wilfred/difftastic/
Update query highlights and add tests
parent
f6bc02526a
commit
c69a3eccc8
@ -0,0 +1,37 @@
|
|||||||
|
object Hello {
|
||||||
|
// ^ keyword
|
||||||
|
// ^ type.definition
|
||||||
|
val x = if (true) (25 * 1.0) else "hello"
|
||||||
|
// ^keyword
|
||||||
|
// ^variable
|
||||||
|
// ^conditional
|
||||||
|
// ^boolean
|
||||||
|
// ^number
|
||||||
|
// ^float
|
||||||
|
// ^string
|
||||||
|
// ^conditional
|
||||||
|
|
||||||
|
trait Test {
|
||||||
|
// ^ keyword
|
||||||
|
// ^ type.definition
|
||||||
|
def meth(i: Int)(implicit x: Boolean) = ???
|
||||||
|
// ^keyword.function
|
||||||
|
// ^keyword
|
||||||
|
// ^type
|
||||||
|
// ^method
|
||||||
|
// ^parameter
|
||||||
|
}
|
||||||
|
|
||||||
|
protected abstract class Bla(test: String)
|
||||||
|
// ^type.qualifier
|
||||||
|
// ^keyword
|
||||||
|
// ^type.qualifier
|
||||||
|
// ^parameter
|
||||||
|
// ^type
|
||||||
|
|
||||||
|
type Hello = "25"
|
||||||
|
// ^keyword
|
||||||
|
// ^type.definition
|
||||||
|
// ^string
|
||||||
|
}
|
||||||
|
|
||||||
@ -0,0 +1,17 @@
|
|||||||
|
enum Test(a: Int):
|
||||||
|
// ^keyword ^type
|
||||||
|
// ^type.definition
|
||||||
|
// ^parameter
|
||||||
|
case Test(b: String)
|
||||||
|
// ^keyword ^type
|
||||||
|
// ^type.definition
|
||||||
|
// ^parameter
|
||||||
|
case Hello, Bla
|
||||||
|
// ^type.definition
|
||||||
|
// ^type.definition
|
||||||
|
|
||||||
|
opaque type Blow <: Int = 25
|
||||||
|
// ^type.qualifier
|
||||||
|
// ^keyword
|
||||||
|
// ^type
|
||||||
|
// ^type.definition
|
||||||
Loading…
Reference in New Issue