on master help sign in
Update SSH client config grammar & highlight queries (#4538)

Co-authored-by: Sebastian Hoß <seb@hoß.de>

commit9b247b1104ab34d55ca383daafab2a26dae31253 authorSebastian Hoß <seb@xn--ho-hia.de> dateTue 1 Nov 2022, 01:27 (4 years ago) parented7ea8c
2 files changed+86−86
languages.toml+1−1 runtime/queries/sshclientconfig/highlights.scm+85−85
languages.toml+1−1
@@ -1518,7 +1518,7 @@ roots = []
15181518
15191519[[grammar]]
15201520name = "sshclientconfig"
1521−source = { git = "https://github.com/metio/tree-sitter-ssh-client-config", rev = "769d7a01a2e5493b4bb5a51096c6bf4be130b024" }
1521+source = { git = "https://github.com/metio/tree-sitter-ssh-client-config", rev = "e45c6d5c71657344d4ecaf87dafae7736f776c57" }
15221522
15231523[[language]]
15241524name = "scheme"
runtime/queries/sshclientconfig/highlights.scm+85−85
@@ -1,17 +1,17 @@
1−(host) @keyword
2−(host_value) @identifier
1+(host) @namespace
2+(host_value) @string
33
4−(match) @keyword
5−(match_value) @identifier
4+(match) @namespace
5+(match_value) @string
66
77(add_keys_to_agent) @keyword
8−(add_keys_to_agent_value) @boolean
8+(add_keys_to_agent_value) @constant.builtin.boolean
99
1010(address_family) @keyword
11−(address_family_value) @type
11+(address_family_value) @constant.builtin
1212
1313(batch_mode) @keyword
14−(batch_mode_value) @boolean
14+(batch_mode_value) @constant.builtin.boolean
1515
1616(bind_address) @keyword
1717(bind_address_value) @string
@@ -20,165 +20,165 @@
2020(bind_interface_value) @string
2121
2222(canonical_domains) @keyword
23−(canonical_domains_value) @identifier
23+(canonical_domains_value) @string
2424
2525(canonicalize_fallback_local) @keyword
26−(canonicalize_fallback_local_value) @boolean
26+(canonicalize_fallback_local_value) @constant.builtin.boolean
2727
2828(canonicalize_hostname) @keyword
29−(canonicalize_hostname_value) @boolean
29+(canonicalize_hostname_value) @constant.builtin
3030
3131(canonicalize_max_dots) @keyword
32−(canonicalize_max_dots_value) @number
32+(canonicalize_max_dots_value) @constant.numeric.integer
3333
3434(canonicalize_permitted_cnames) @keyword
35−(canonicalize_permitted_cnames_value) @identifier
35+(canonicalize_permitted_cnames_value) @string
3636
3737(ca_signature_algorithms) @keyword
38−(ca_signature_algorithms_value) @identifier
38+(ca_signature_algorithms_value) @string
3939
4040(certificate_file) @keyword
41−(certificate_file_value) @file
41+(certificate_file_value) @string.special.path
4242
4343(challenge_response_authentication) @keyword
44−(challenge_response_authentication_value) @boolean
44+(challenge_response_authentication_value) @constant.builtin.boolean
4545
4646(check_host_ip) @keyword
47−(check_host_ip_value) @boolean
47+(check_host_ip_value) @constant.builtin.boolean
4848
4949(cipher) @keyword
50−(cipher_value) @identifier
50+(cipher_value) @string
5151
5252(ciphers) @keyword
53−(ciphers_value) @identifier
53+(ciphers_value) @string
5454
5555(clear_all_forwardings) @keyword
56−(clear_all_forwardings_value) @boolean
56+(clear_all_forwardings_value) @constant.builtin.boolean
5757
5858(comment) @comment
5959
6060(compression) @keyword
61−(compression_value) @boolean
61+(compression_value) @constant.builtin.boolean
6262
6363(connect_timeout) @keyword
64−(connect_timeout_value) @number
64+(connect_timeout_value) @constant.numeric.integer
6565
6666(connection_attempts) @keyword
67−(connection_attempts_value) @number
67+(connection_attempts_value) @constant.numeric.integer
6868
6969(control_master) @keyword
70−(control_master_value) @type
70+(control_master_value) @constant.builtin
7171
7272(control_path) @keyword
73−(control_path_value) @file
73+(control_path_value) @string.special.path
7474
7575(control_persist) @keyword
76−(control_persist_value) @type
76+(control_persist_value) @constant.builtin
7777
7878(dynamic_forward) @keyword
7979(dynamic_forward_value) @string
8080
8181(enable_ssh_keysign) @keyword
82−(enable_ssh_keysign_value) @boolean
82+(enable_ssh_keysign_value) @constant.builtin.boolean
8383
8484(escape_char) @keyword
85−(escape_char_value) @string
85+(escape_char_value) @constant.character.escape
8686
8787(exit_on_forward_failure) @keyword
88−(exit_on_forward_failure_value) @boolean
88+(exit_on_forward_failure_value) @constant.builtin.boolean
8989
9090(fingerprint_hash) @keyword
91−(fingerprint_hash_value) @identifier
91+(fingerprint_hash_value) @constant.builtin
9292
9393(fork_after_authentication) @keyword
94−(fork_after_authentication_value) @boolean
94+(fork_after_authentication_value) @constant.builtin.boolean
9595
9696(forward_agent) @keyword
97−(forward_agent_value) @boolean
97+(forward_agent_value) @string
9898
9999(forward_x11) @keyword
100−(forward_x11_value) @boolean
100+(forward_x11_value) @constant.builtin.boolean
101101
102102(forward_x11_timeout) @keyword
103−(forward_x11_timeout_value) @time
103+(forward_x11_timeout_value) @constant.numeric.integer
104104
105105(forward_x11_trusted) @keyword
106−(forward_x11_trusted_value) @boolean
106+(forward_x11_trusted_value) @constant.builtin.boolean
107107
108108(gateway_ports) @keyword
109−(gateway_ports_value) @boolean
109+(gateway_ports_value) @constant.builtin.boolean
110110
111111(global_known_hosts_file) @keyword
112−(global_known_hosts_file_value) @file
112+(global_known_hosts_file_value) @string.special.path
113113
114114(gssapi_authentication) @keyword
115−(gssapi_authentication_value) @boolean
115+(gssapi_authentication_value) @constant.builtin.boolean
116116
117117(gssapi_client_identity) @keyword
118118(gssapi_client_identity_value) @string
119119
120120(gssapi_delegate_credentials) @keyword
121−(gssapi_delegate_credentials_value) @boolean
121+(gssapi_delegate_credentials_value) @constant.builtin.boolean
122122
123123(gssapi_kex_algorithms) @keyword
124−(gssapi_kex_algorithms_value) @identifier
124+(gssapi_kex_algorithms_value) @string
125125
126126(gssapi_key_exchange) @keyword
127−(gssapi_key_exchange_value) @boolean
127+(gssapi_key_exchange_value) @constant.builtin.boolean
128128
129129(gssapi_renewal_forces_rekey) @keyword
130−(gssapi_renewal_forces_rekey_value) @boolean
130+(gssapi_renewal_forces_rekey_value) @constant.builtin.boolean
131131
132132(gssapi_server_identity) @keyword
133133(gssapi_server_identity_value) @string
134134
135135(gssapi_trust_dns) @keyword
136−(gssapi_trust_dns_value) @boolean
136+(gssapi_trust_dns_value) @constant.builtin.boolean
137137
138138(hash_known_hosts) @keyword
139−(hash_known_hosts_value) @boolean
139+(hash_known_hosts_value) @constant.builtin.boolean
140140
141141(host_key_algorithms) @keyword
142−(host_key_algorithms_value) @identifier
142+(host_key_algorithms_value) @string
143143
144144(host_key_alias) @keyword
145145(host_key_alias_value) @string
146146
147147(hostbased_accepted_algorithms) @keyword
148−(hostbased_accepted_algorithms_value) @identifier
148+(hostbased_accepted_algorithms_value) @string
149149
150150(hostbased_authentication) @keyword
151−(hostbased_authentication_value) @boolean
151+(hostbased_authentication_value) @constant.builtin.boolean
152152
153153(hostname) @keyword
154154(hostname_value) @string
155155
156156(identities_only) @keyword
157−(identities_only_value) @boolean
157+(identities_only_value) @constant.builtin.boolean
158158
159159(identity_agent) @keyword
160160(identity_agent_value) @string
161161
162162(identity_file) @keyword
163−(identity_file_value) @file
163+(identity_file_value) @string.special.path
164164
165165(ignore_unknown) @keyword
166166(ignore_unknown_value) @string
167167
168−(include) @keyword
169−(include_value) @file
168+(include) @function.macro
169+(include_value) @string.special.path
170170
171171(ip_qos) @keyword
172−(ip_qos_value) @type
172+(ip_qos_value) @constant.builtin
173173
174174(kbd_interactive_authentication) @keyword
175−(kbd_interactive_authentication_value) @boolean
175+(kbd_interactive_authentication_value) @constant.builtin.boolean
176176
177177(kbd_interactive_devices) @keyword
178−(kbd_interactive_devices_value) @type
178+(kbd_interactive_devices_value) @string
179179
180180(kex_algorithms) @keyword
181−(kex_algorithms_value) @identifier
181+(kex_algorithms_value) @string
182182
183183(known_hosts_command) @keyword
184184(known_hosts_command_value) @string
@@ -190,25 +190,25 @@
190190(local_forward_value) @string
191191
192192(log_level) @keyword
193−(log_level_value) @type
193+(log_level_value) @constant.builtin
194194
195195(log_verbose) @keyword
196196(log_verbose_value) @string
197197
198198(macs) @keyword
199−(macs_value) @identifier
199+(macs_value) @string
200200
201201(no_host_authentication_for_localhost) @keyword
202−(no_host_authentication_for_localhost_value) @boolean
202+(no_host_authentication_for_localhost_value) @constant.builtin.boolean
203203
204204(number_of_password_prompts) @keyword
205−(number_of_password_prompts_value) @number
205+(number_of_password_prompts_value) @constant.numeric.integer
206206
207207(password_authentication) @keyword
208−(password_authentication_value) @boolean
208+(password_authentication_value) @constant.builtin.boolean
209209
210210(permit_local_command) @keyword
211−(permit_local_command_value) @boolean
211+(permit_local_command_value) @constant.builtin.boolean
212212
213213(permit_remote_open) @keyword
214214(permit_remote_open_value) @string
@@ -217,13 +217,13 @@
217217(pkcs11_provider_value) @string
218218
219219(port) @keyword
220−(port_value) @number
220+(port_value) @constant.numeric.integer
221221
222222(preferred_authentications) @keyword
223−(preferred_authentications_value) @type
223+(preferred_authentications_value) @string
224224
225225(protocol) @keyword
226−(protocol_value) @number
226+(protocol_value) @constant.numeric.integer
227227
228228(proxy_command) @keyword
229229(proxy_command_value) @string
@@ -232,16 +232,16 @@
232232(proxy_jump_value) @string
233233
234234(proxy_use_fdpass) @keyword
235−(proxy_use_fdpass_value) @boolean
235+(proxy_use_fdpass_value) @constant.builtin.boolean
236236
237237(pubkey_accepted_algorithms) @keyword
238−(pubkey_accepted_algorithms_value) @identifier
238+(pubkey_accepted_algorithms_value) @string
239239
240240(pubkey_accepted_key_types) @keyword
241−(pubkey_accepted_key_types_value) @identifier
241+(pubkey_accepted_key_types_value) @string
242242
243243(pubkey_authentication) @keyword
244−(pubkey_authentication_value) @boolean
244+(pubkey_authentication_value) @constant.builtin
245245
246246(rekey_limit) @keyword
247247(rekey_limit_value) @string
@@ -253,10 +253,10 @@
253253(remote_forward_value) @string
254254
255255(request_tty) @keyword
256−(request_tty_value) @type
256+(request_tty_value) @constant.builtin
257257
258258(revoked_host_keys) @keyword
259−(revoked_host_keys_value) @file
259+(revoked_host_keys_value) @string.special.path
260260
261261(security_key_provider) @keyword
262262(security_key_provider_value) @string
@@ -265,60 +265,60 @@
265265(send_env_value) @string
266266
267267(server_alive_count_max) @keyword
268−(server_alive_count_max_value) @number
268+(server_alive_count_max_value) @constant.numeric.integer
269269
270270(server_alive_interval) @keyword
271−(server_alive_interval_value) @number
271+(server_alive_interval_value) @constant.numeric.integer
272272
273273(session_type) @keyword
274−(session_type_value) @type
274+(session_type_value) @constant.builtin
275275
276276(set_env) @keyword
277277(set_env_value) @string
278278
279279(stdin_null) @keyword
280−(stdin_null_value) @boolean
280+(stdin_null_value) @constant.builtin.boolean
281281
282282(stream_local_bind_mask) @keyword
283283(stream_local_bind_mask_value) @string
284284
285285(stream_local_bind_unlink) @keyword
286−(stream_local_bind_unlink_value) @boolean
286+(stream_local_bind_unlink_value) @constant.builtin.boolean
287287
288288(strict_host_key_checking) @keyword
289−(strict_host_key_checking_value) @type
289+(strict_host_key_checking_value) @constant.builtin
290290
291291(syslog_facility) @keyword
292−(syslog_facility_value) @type
292+(syslog_facility_value) @constant.builtin
293293
294294(tcp_keep_alive) @keyword
295−(tcp_keep_alive_value) @boolean
295+(tcp_keep_alive_value) @constant.builtin.boolean
296296(keep_alive) @keyword
297−(keep_alive_value) @boolean
297+(keep_alive_value) @constant.builtin.boolean
298298
299299(tunnel) @keyword
300−(tunnel_value) @type
300+(tunnel_value) @constant.builtin
301301
302302(tunnel_device) @keyword
303303(tunnel_device_value) @string
304304
305305(update_host_keys) @keyword
306−(update_host_keys_value) @type
306+(update_host_keys_value) @constant.builtin
307307
308308(use_keychain) @keyword
309−(use_keychain_value) @boolean
309+(use_keychain_value) @constant.builtin.boolean
310310
311311(user) @keyword
312312(user_value) @string
313313
314314(user_known_hosts_file) @keyword
315−(user_known_hosts_file_value) @file
315+(user_known_hosts_file_value) @string.special.path
316316
317317(verify_host_key_dns) @keyword
318−(verify_host_key_dns_value) @type
318+(verify_host_key_dns_value) @constant.builtin
319319
320320(visual_host_key) @keyword
321−(visual_host_key_value) @boolean
321+(visual_host_key_value) @constant.builtin.boolean
322322
323323(xauth_location) @keyword
324−(xauth_location_value) @file
324+(xauth_location_value) @string.special.path