acp-tui 0.0.0-stage → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +207 -0
- package/LICENSE +202 -0
- package/NOTICE +47 -0
- package/README.md +145 -2
- package/THIRD-PARTY-NOTICES.md +175 -0
- package/assets/grammars/bash/LICENSE +21 -0
- package/assets/grammars/bash/highlights.scm +56 -0
- package/assets/grammars/bash/tree-sitter-bash.wasm +0 -0
- package/assets/grammars/java/LICENSE +21 -0
- package/assets/grammars/java/highlights.scm +149 -0
- package/assets/grammars/java/tree-sitter-java.wasm +0 -0
- package/assets/grammars/json/LICENSE +21 -0
- package/assets/grammars/json/highlights.scm +16 -0
- package/assets/grammars/json/tree-sitter-json.wasm +0 -0
- package/assets/grammars/kotlin/LICENSE +9 -0
- package/assets/grammars/kotlin/highlights.scm +380 -0
- package/assets/grammars/kotlin/tree-sitter-kotlin.wasm +0 -0
- package/assets/grammars/manifest.json +252 -0
- package/assets/grammars/php/LICENSE +22 -0
- package/assets/grammars/php/highlights.scm +203 -0
- package/assets/grammars/php/tree-sitter-php.wasm +0 -0
- package/assets/grammars/python/LICENSE +21 -0
- package/assets/grammars/python/highlights.scm +137 -0
- package/assets/grammars/python/tree-sitter-python.wasm +0 -0
- package/assets/grammars/sql/LICENSE +21 -0
- package/assets/grammars/sql/highlights.scm +445 -0
- package/assets/grammars/sql/tree-sitter-sql.wasm +0 -0
- package/assets/grammars/xml/LICENSE +19 -0
- package/assets/grammars/xml/highlights.scm +168 -0
- package/assets/grammars/xml/tree-sitter-xml.wasm +0 -0
- package/assets/grammars/yaml/LICENSE +20 -0
- package/assets/grammars/yaml/highlights.scm +79 -0
- package/assets/grammars/yaml/tree-sitter-yaml.wasm +0 -0
- package/bin/acp-tui.js +19 -0
- package/dist/chunk-08kdppjx.js +235 -0
- package/dist/chunk-0w4xjw00.js +975 -0
- package/dist/chunk-2ad6nkqz.js +1524 -0
- package/dist/chunk-2wxsgxs5.js +998 -0
- package/dist/chunk-5366f4ye.js +1563 -0
- package/dist/chunk-5gzk1zcj.js +1707 -0
- package/dist/chunk-ek4fcw4r.js +12 -0
- package/dist/chunk-jes10974.js +19 -0
- package/dist/chunk-k0hahyd3.js +594 -0
- package/dist/chunk-qjrt5cj2.js +2124 -0
- package/dist/chunk-qrs9en4a.js +26 -0
- package/dist/chunk-racxqn19.js +75 -0
- package/dist/chunk-rdst3ye3.js +32634 -0
- package/dist/chunk-rzv2z5kc.js +93 -0
- package/dist/chunk-smgzmv9m.js +1 -0
- package/dist/chunk-w8yan6ty.js +282 -0
- package/dist/chunk-wgdt7k86.js +4418 -0
- package/dist/chunk-x17785m7.js +1848 -0
- package/dist/chunk-y0df247a.js +42 -0
- package/dist/chunk-y7mrsbch.js +29 -0
- package/dist/chunk-ymrner9c.js +74 -0
- package/dist/cli.js +485 -0
- package/package.json +50 -4
- package/schema/config.schema.json +2014 -0
- package/schema/theme.schema.json +1217 -0
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
# Third-party notices
|
|
2
|
+
|
|
3
|
+
acp-tui's built program (`dist/`) includes the following packages, each under its own licence.
|
|
4
|
+
|
|
5
|
+
## @opentui/keymap 0.6.6
|
|
6
|
+
|
|
7
|
+
Licence: MIT
|
|
8
|
+
|
|
9
|
+
```
|
|
10
|
+
MIT License
|
|
11
|
+
|
|
12
|
+
Copyright (c) 2025 opentui
|
|
13
|
+
|
|
14
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
15
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
16
|
+
in the Software without restriction, including without limitation the rights
|
|
17
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
18
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
19
|
+
furnished to do so, subject to the following conditions:
|
|
20
|
+
|
|
21
|
+
The above copyright notice and this permission notice shall be included in all
|
|
22
|
+
copies or substantial portions of the Software.
|
|
23
|
+
|
|
24
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
25
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
26
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
27
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
28
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
29
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
30
|
+
SOFTWARE.
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
## @opentui/solid 0.6.6
|
|
34
|
+
|
|
35
|
+
Licence: MIT
|
|
36
|
+
|
|
37
|
+
```
|
|
38
|
+
MIT License
|
|
39
|
+
|
|
40
|
+
Copyright (c) 2025 opentui
|
|
41
|
+
|
|
42
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
43
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
44
|
+
in the Software without restriction, including without limitation the rights
|
|
45
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
46
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
47
|
+
furnished to do so, subject to the following conditions:
|
|
48
|
+
|
|
49
|
+
The above copyright notice and this permission notice shall be included in all
|
|
50
|
+
copies or substantial portions of the Software.
|
|
51
|
+
|
|
52
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
53
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
54
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
55
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
56
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
57
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
58
|
+
SOFTWARE.
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
## entities 7.0.1
|
|
62
|
+
|
|
63
|
+
Licence: BSD-2-Clause
|
|
64
|
+
|
|
65
|
+
```
|
|
66
|
+
Copyright (c) Felix Böhm
|
|
67
|
+
All rights reserved.
|
|
68
|
+
|
|
69
|
+
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
|
70
|
+
|
|
71
|
+
Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
|
72
|
+
|
|
73
|
+
Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
|
74
|
+
|
|
75
|
+
THIS IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS,
|
|
76
|
+
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
## solid-js 1.9.12
|
|
80
|
+
|
|
81
|
+
Licence: MIT
|
|
82
|
+
|
|
83
|
+
```
|
|
84
|
+
MIT License
|
|
85
|
+
|
|
86
|
+
Copyright (c) 2016-2025 Ryan Carniato
|
|
87
|
+
|
|
88
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
89
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
90
|
+
in the Software without restriction, including without limitation the rights
|
|
91
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
92
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
93
|
+
furnished to do so, subject to the following conditions:
|
|
94
|
+
|
|
95
|
+
The above copyright notice and this permission notice shall be included in all
|
|
96
|
+
copies or substantial portions of the Software.
|
|
97
|
+
|
|
98
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
99
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
100
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
101
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
102
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
103
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
104
|
+
SOFTWARE.
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
It also includes data tables generated from the following sources, each distributed under the licence of its source.
|
|
108
|
+
|
|
109
|
+
## Emoji names (Unicode emoji-test.txt, Emoji 18.0)
|
|
110
|
+
|
|
111
|
+
Generated from Unicode's emoji-test.txt (https://www.unicode.org/Public/18.0.0/emoji/emoji-test.txt), under the Unicode License v3.
|
|
112
|
+
|
|
113
|
+
```
|
|
114
|
+
UNICODE LICENSE V3
|
|
115
|
+
|
|
116
|
+
COPYRIGHT AND PERMISSION NOTICE
|
|
117
|
+
|
|
118
|
+
Copyright (c) 1991-2026 Unicode, Inc.
|
|
119
|
+
|
|
120
|
+
NOTICE TO USER: Carefully read the following legal agreement. BY
|
|
121
|
+
DOWNLOADING, INSTALLING, COPYING OR OTHERWISE USING DATA FILES, AND/OR
|
|
122
|
+
SOFTWARE, YOU UNEQUIVOCALLY ACCEPT, AND AGREE TO BE BOUND BY, ALL OF THE
|
|
123
|
+
TERMS AND CONDITIONS OF THIS AGREEMENT. IF YOU DO NOT AGREE, DO NOT
|
|
124
|
+
DOWNLOAD, INSTALL, COPY, DISTRIBUTE OR USE THE DATA FILES OR SOFTWARE.
|
|
125
|
+
|
|
126
|
+
Permission is hereby granted, free of charge, to any person obtaining a
|
|
127
|
+
copy of data files and any associated documentation (the "Data Files") or
|
|
128
|
+
software and any associated documentation (the "Software") to deal in the
|
|
129
|
+
Data Files or Software without restriction, including without limitation
|
|
130
|
+
the rights to use, copy, modify, merge, publish, distribute, and/or sell
|
|
131
|
+
copies of the Data Files or Software, and to permit persons to whom the
|
|
132
|
+
Data Files or Software are furnished to do so, provided that either (a)
|
|
133
|
+
this copyright and permission notice appear with all copies of the Data
|
|
134
|
+
Files or Software, or (b) this copyright and permission notice appear in
|
|
135
|
+
associated Documentation.
|
|
136
|
+
|
|
137
|
+
THE DATA FILES AND SOFTWARE ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY
|
|
138
|
+
KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
139
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF
|
|
140
|
+
THIRD PARTY RIGHTS.
|
|
141
|
+
|
|
142
|
+
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS INCLUDED IN THIS NOTICE
|
|
143
|
+
BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES,
|
|
144
|
+
OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
|
|
145
|
+
WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
|
|
146
|
+
ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THE DATA
|
|
147
|
+
FILES OR SOFTWARE.
|
|
148
|
+
|
|
149
|
+
Except as contained in this notice, the name of a copyright holder shall
|
|
150
|
+
not be used in advertising or otherwise to promote the sale, use or other
|
|
151
|
+
dealings in these Data Files or Software without prior written
|
|
152
|
+
authorization of the copyright holder.
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
## LaTeX to Unicode symbols (unicode2latex 7.0.35)
|
|
156
|
+
|
|
157
|
+
Generated from the npm package unicode2latex 7.0.35 (https://github.com/retorquere/unicode2latex), under the ISC licence.
|
|
158
|
+
|
|
159
|
+
```
|
|
160
|
+
ISC License
|
|
161
|
+
|
|
162
|
+
Copyright (c) Emiliano Heyns
|
|
163
|
+
|
|
164
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
165
|
+
purpose with or without fee is hereby granted, provided that the above
|
|
166
|
+
copyright notice and this permission notice appear in all copies.
|
|
167
|
+
|
|
168
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
169
|
+
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
170
|
+
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
171
|
+
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
172
|
+
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
173
|
+
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
174
|
+
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
175
|
+
```
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2017 Max Brunsfeld
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
[
|
|
2
|
+
(string)
|
|
3
|
+
(raw_string)
|
|
4
|
+
(heredoc_body)
|
|
5
|
+
(heredoc_start)
|
|
6
|
+
] @string
|
|
7
|
+
|
|
8
|
+
(command_name) @function
|
|
9
|
+
|
|
10
|
+
(variable_name) @property
|
|
11
|
+
|
|
12
|
+
[
|
|
13
|
+
"case"
|
|
14
|
+
"do"
|
|
15
|
+
"done"
|
|
16
|
+
"elif"
|
|
17
|
+
"else"
|
|
18
|
+
"esac"
|
|
19
|
+
"export"
|
|
20
|
+
"fi"
|
|
21
|
+
"for"
|
|
22
|
+
"function"
|
|
23
|
+
"if"
|
|
24
|
+
"in"
|
|
25
|
+
"select"
|
|
26
|
+
"then"
|
|
27
|
+
"unset"
|
|
28
|
+
"until"
|
|
29
|
+
"while"
|
|
30
|
+
] @keyword
|
|
31
|
+
|
|
32
|
+
(comment) @comment
|
|
33
|
+
|
|
34
|
+
(function_definition name: (word) @function)
|
|
35
|
+
|
|
36
|
+
(file_descriptor) @number
|
|
37
|
+
|
|
38
|
+
[
|
|
39
|
+
(command_substitution)
|
|
40
|
+
(process_substitution)
|
|
41
|
+
(expansion)
|
|
42
|
+
]@embedded
|
|
43
|
+
|
|
44
|
+
[
|
|
45
|
+
"$"
|
|
46
|
+
"&&"
|
|
47
|
+
">"
|
|
48
|
+
">>"
|
|
49
|
+
"<"
|
|
50
|
+
"|"
|
|
51
|
+
] @operator
|
|
52
|
+
|
|
53
|
+
(
|
|
54
|
+
(command (_) @constant)
|
|
55
|
+
(#match? @constant "^-")
|
|
56
|
+
)
|
|
Binary file
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2017 Ayman Nadeem
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
; Variables
|
|
2
|
+
|
|
3
|
+
(identifier) @variable
|
|
4
|
+
|
|
5
|
+
; Methods
|
|
6
|
+
|
|
7
|
+
(method_declaration
|
|
8
|
+
name: (identifier) @function.method)
|
|
9
|
+
(method_invocation
|
|
10
|
+
name: (identifier) @function.method)
|
|
11
|
+
(super) @function.builtin
|
|
12
|
+
|
|
13
|
+
; Annotations
|
|
14
|
+
|
|
15
|
+
(annotation
|
|
16
|
+
name: (identifier) @attribute)
|
|
17
|
+
(marker_annotation
|
|
18
|
+
name: (identifier) @attribute)
|
|
19
|
+
|
|
20
|
+
"@" @operator
|
|
21
|
+
|
|
22
|
+
; Types
|
|
23
|
+
|
|
24
|
+
(type_identifier) @type
|
|
25
|
+
|
|
26
|
+
(interface_declaration
|
|
27
|
+
name: (identifier) @type)
|
|
28
|
+
(class_declaration
|
|
29
|
+
name: (identifier) @type)
|
|
30
|
+
(enum_declaration
|
|
31
|
+
name: (identifier) @type)
|
|
32
|
+
|
|
33
|
+
((field_access
|
|
34
|
+
object: (identifier) @type)
|
|
35
|
+
(#match? @type "^[A-Z]"))
|
|
36
|
+
((scoped_identifier
|
|
37
|
+
scope: (identifier) @type)
|
|
38
|
+
(#match? @type "^[A-Z]"))
|
|
39
|
+
((method_invocation
|
|
40
|
+
object: (identifier) @type)
|
|
41
|
+
(#match? @type "^[A-Z]"))
|
|
42
|
+
((method_reference
|
|
43
|
+
. (identifier) @type)
|
|
44
|
+
(#match? @type "^[A-Z]"))
|
|
45
|
+
|
|
46
|
+
(constructor_declaration
|
|
47
|
+
name: (identifier) @type)
|
|
48
|
+
|
|
49
|
+
[
|
|
50
|
+
(boolean_type)
|
|
51
|
+
(integral_type)
|
|
52
|
+
(floating_point_type)
|
|
53
|
+
(floating_point_type)
|
|
54
|
+
(void_type)
|
|
55
|
+
] @type.builtin
|
|
56
|
+
|
|
57
|
+
; Constants
|
|
58
|
+
|
|
59
|
+
((identifier) @constant
|
|
60
|
+
(#match? @constant "^_*[A-Z][A-Z\\d_]+$"))
|
|
61
|
+
|
|
62
|
+
; Builtins
|
|
63
|
+
|
|
64
|
+
(this) @variable.builtin
|
|
65
|
+
|
|
66
|
+
; Literals
|
|
67
|
+
|
|
68
|
+
[
|
|
69
|
+
(hex_integer_literal)
|
|
70
|
+
(decimal_integer_literal)
|
|
71
|
+
(octal_integer_literal)
|
|
72
|
+
(decimal_floating_point_literal)
|
|
73
|
+
(hex_floating_point_literal)
|
|
74
|
+
] @number
|
|
75
|
+
|
|
76
|
+
[
|
|
77
|
+
(character_literal)
|
|
78
|
+
(string_literal)
|
|
79
|
+
] @string
|
|
80
|
+
(escape_sequence) @string.escape
|
|
81
|
+
|
|
82
|
+
[
|
|
83
|
+
(true)
|
|
84
|
+
(false)
|
|
85
|
+
(null_literal)
|
|
86
|
+
] @constant.builtin
|
|
87
|
+
|
|
88
|
+
[
|
|
89
|
+
(line_comment)
|
|
90
|
+
(block_comment)
|
|
91
|
+
] @comment
|
|
92
|
+
|
|
93
|
+
; Keywords
|
|
94
|
+
|
|
95
|
+
[
|
|
96
|
+
"abstract"
|
|
97
|
+
"assert"
|
|
98
|
+
"break"
|
|
99
|
+
"case"
|
|
100
|
+
"catch"
|
|
101
|
+
"class"
|
|
102
|
+
"continue"
|
|
103
|
+
"default"
|
|
104
|
+
"do"
|
|
105
|
+
"else"
|
|
106
|
+
"enum"
|
|
107
|
+
"exports"
|
|
108
|
+
"extends"
|
|
109
|
+
"final"
|
|
110
|
+
"finally"
|
|
111
|
+
"for"
|
|
112
|
+
"if"
|
|
113
|
+
"implements"
|
|
114
|
+
"import"
|
|
115
|
+
"instanceof"
|
|
116
|
+
"interface"
|
|
117
|
+
"module"
|
|
118
|
+
"native"
|
|
119
|
+
"new"
|
|
120
|
+
"non-sealed"
|
|
121
|
+
"open"
|
|
122
|
+
"opens"
|
|
123
|
+
"package"
|
|
124
|
+
"permits"
|
|
125
|
+
"private"
|
|
126
|
+
"protected"
|
|
127
|
+
"provides"
|
|
128
|
+
"public"
|
|
129
|
+
"requires"
|
|
130
|
+
"record"
|
|
131
|
+
"return"
|
|
132
|
+
"sealed"
|
|
133
|
+
"static"
|
|
134
|
+
"strictfp"
|
|
135
|
+
"switch"
|
|
136
|
+
"synchronized"
|
|
137
|
+
"throw"
|
|
138
|
+
"throws"
|
|
139
|
+
"to"
|
|
140
|
+
"transient"
|
|
141
|
+
"transitive"
|
|
142
|
+
"try"
|
|
143
|
+
"uses"
|
|
144
|
+
"volatile"
|
|
145
|
+
"when"
|
|
146
|
+
"while"
|
|
147
|
+
"with"
|
|
148
|
+
"yield"
|
|
149
|
+
] @keyword
|
|
Binary file
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2014 Max Brunsfeld
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
Binary file
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2019 fwcd
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
6
|
+
|
|
7
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
8
|
+
|
|
9
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|