yum-mirror/slang

Making it easier to work with shaders

git clone https://git.yummers.dev/yum-mirror/slang

Yong HeLanguage server: sort completion candidate by relevance. (#7626)3865a6596

master
284 B16 linesraw
1//TEST:LANG_SERVER(filecheck=CHECK):
2
3// Test that completion candidates are sorted according to context.
4
5enum Fruit { Orange, Apple, Banana }
6struct MyType<Fruit v> {}
7
8
9void test()
10{
11//COMPLETE:12,12
12    MyType< // should list `Fruit` first.
13
14}
15
16// CHECK: Fruit:{{.*}}sort(0:Fruit)