robin/laufey
git clone https://git.robinwobin.dev/robin/laufey
aa1d8a2702
master
1" Vim syntax file 2" Language: OpenSSH public key 3" Author: Fionn Fitzmaurice (github.com/fionn) 4" Maintainer: Fionn Fitzmaurice (github.com/fionn) 5" License: Vim & Apache 2.0 6" Last Change: 2026 Jun 28 7" 2026 Sep 27 by Vim project: Add a new SSH key type 8" 2026 Sep 28 by Vim project: update syntax file 9 10if exists ( "b:current_syntax" ) 11finish 12endif 13 14syn iskeyword _,.,@-@,-,a-z,A-Z,48-57 15 16syn keyword sshKeyType ssh -mldsa44-ed25519 nextgroup=sshKeyBase64Encoded skipwhite 17syn keyword sshKeyType ssh -mldsa44-ed25519@openssh.com nextgroup=sshKeyBase64Encoded skipwhite 18syn keyword sshKeyType ssh -ed25519 nextgroup=sshKeyBase64Encoded skipwhite 19syn keyword sshKeyType sk -ssh-ed25519@openssh.com nextgroup=sshKeyBase64Encoded skipwhite 20syn keyword sshKeyType ecdsa -sha2-nistp256 nextgroup=sshKeyBase64Encoded skipwhite 21syn keyword sshKeyType ecdsa -sha2-nistp384 nextgroup=sshKeyBase64Encoded skipwhite 22syn keyword sshKeyType ecdsa -sha2-nistp521 nextgroup=sshKeyBase64Encoded skipwhite 23syn keyword sshKeyType sk -ecdsa-sha2-nistp256@openssh.com nextgroup=sshKeyBase64Encoded skipwhite 24syn keyword sshKeyType ssh -rsa nextgroup=sshKeyBase64Encoded skipwhite 25 26syn match sshKeyBase64Encoded "AAAA [ a-zA-Z0-9/+ ] \{64,8000}=\{,2} "contained nextgroup = sshKeyComment 27syn match sshKeyComment ". * $ "contained 28 29syn match sshKeyComment "#. * $ " 30 31hi def link sshKeyType Type 32hi def link sshKeyBase64Encoded String 33hi def link sshKeyComment Comment 34 35let b: current_syntax = "sshpublickey"