-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathLua.hx
30 lines (25 loc) · 793 Bytes
/
Lua.hx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/*
* SPDX-FileCopyrightText: © Sebastian Thomschke and contributors
* SPDX-FileContributor: Sebastian Thomschke
* SPDX-License-Identifier: MIT
* SPDX-ArtifactOfProjectHomePage: https://github.com/sebthom/more-clink-completions
*/
package more_clink_completions.completions;
import clink.api.ArgMatcher;
import clink.api.Clink;
import clink.util.Suggest;
using clink.util.Strings;
class Lua {
public static function register() {
Clink.argMatcher("lua").setDelayedInitializer(registerNow);
}
static function registerNow(parser:ArgMatcher, commandWord:String) {
parser //
.addFlag("-e", "") //
.addFlag("-i")
.addFlag("-l", "") //
.addFlag("-v")
.addFlag("-E")
.addArg(Suggest.filesEndingWith(".lua"));
}
}