Skip to content

Commit

Permalink
Wrap/indent crypto completion scope selectors
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelblyons committed Oct 30, 2020
1 parent 49cbed1 commit c3ad16d
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def build_crypto():

for domain, settings in crypto_input.items():
completions = {
'scope': settings['completions']['scope'],
'scope': settings['completions']['scope'].strip(),
'completions': [],
}
default_kind = settings['completions']['kind']
Expand Down
27 changes: 23 additions & 4 deletions src/crypto.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,14 @@ key-types:
# ssh -Q key
# https://github.com/jtesta/ssh-audit/blob/master/ssh-audit.py
completions:
scope: (source.ssh_config | source.sshd_config) & meta.mapping.value - source source, (text.authorized_keys | text.known_hosts) - comment - string
scope: "
(source.ssh_config | source.sshd_config)
& meta.mapping.value
- source source,
(text.authorized_keys | text.known_hosts)
- comment
- string
"
kind: [type, k, Key type]
annotation: key type
active:
Expand Down Expand Up @@ -56,7 +63,11 @@ ciphers:
# ssh -Q ciphers
# https://github.com/jtesta/ssh-audit/blob/master/ssh-audit.py
completions:
scope: (source.ssh_config | source.sshd_config) & meta.mapping.value - source source
scope: "
(source.ssh_config | source.sshd_config)
& meta.mapping.value
- source source
"
kind: [function, c, Cipher]
annotation: cipher
active:
Expand Down Expand Up @@ -126,7 +137,11 @@ kex-algorithms:
# ssh -Q kex
# https://github.com/jtesta/ssh-audit/blob/master/ssh-audit.py
completions:
scope: (source.ssh_config | source.sshd_config) & meta.mapping.value - source source
scope: "
(source.ssh_config | source.sshd_config)
& meta.mapping.value
- source source
"
kind: [function, k, Kex Algm]
annotation: kex
active:
Expand Down Expand Up @@ -199,7 +214,11 @@ mac-algorithms:
# ssh -Q mac
# https://github.com/jtesta/ssh-audit/blob/master/ssh-audit.py
completions:
scope: (source.ssh_config | source.sshd_config) & meta.mapping.value - source source
scope: "
(source.ssh_config | source.sshd_config)
& meta.mapping.value
- source source
"
kind: [function, m, MAC Algm]
annotation: mac
active:
Expand Down

0 comments on commit c3ad16d

Please sign in to comment.