Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1 | " Vim syntax file |
| 2 | " This is a GENERATED FILE. Please always refer to source file at the URI below. |
| 3 | " Language: OpenSSH server configuration file (sshd_config) |
| 4 | " Maintainer: David Ne\v{c}as (Yeti) <yeti@physics.muni.cz> |
Bram Moolenaar | 362e1a3 | 2006-03-06 23:29:24 +0000 | [diff] [blame] | 5 | " Last Change: 2006-03-05 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6 | " URL: http://trific.ath.cx/Ftp/vim/syntax/sshdconfig.vim |
| 7 | |
| 8 | " Setup |
| 9 | if version >= 600 |
| 10 | if exists("b:current_syntax") |
| 11 | finish |
| 12 | endif |
| 13 | else |
| 14 | syntax clear |
| 15 | endif |
| 16 | |
| 17 | if version >= 600 |
| 18 | setlocal iskeyword=_,-,a-z,A-Z,48-57 |
| 19 | else |
| 20 | set iskeyword=_,-,a-z,A-Z,48-57 |
| 21 | endif |
| 22 | |
| 23 | syn case ignore |
| 24 | |
| 25 | " Comments |
| 26 | syn match sshdconfigComment "#.*$" contains=sshdconfigTodo |
| 27 | syn keyword sshdconfigTodo TODO FIXME NOT contained |
| 28 | |
| 29 | " Constants |
| 30 | syn keyword sshdconfigYesNo yes no |
| 31 | syn keyword sshdconfigCipher aes128-cbc 3des-cbc blowfish-cbc cast128-cbc |
Bram Moolenaar | 362e1a3 | 2006-03-06 23:29:24 +0000 | [diff] [blame] | 32 | syn keyword sshdconfigCipher aes192-cbc aes256-cbc aes128-ctr aes256-ctr |
| 33 | syn keyword sshdconfigCipher arcfour arcfour128 arcfour256 cast128-cbc |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 34 | syn keyword sshdconfigMAC hmac-md5 hmac-sha1 hmac-ripemd160 hmac-sha1-96 |
| 35 | syn keyword sshdconfigMAC hmac-md5-96 |
| 36 | syn keyword sshdconfigRootLogin without-password forced-commands-only |
| 37 | syn keyword sshdconfigLogLevel QUIET FATAL ERROR INFO VERBOSE |
| 38 | syn keyword sshdconfigLogLevel DEBUG DEBUG1 DEBUG2 DEBUG3 |
| 39 | syn keyword sshdconfigSysLogFacility DAEMON USER AUTH LOCAL0 LOCAL1 LOCAL2 |
| 40 | syn keyword sshdconfigSysLogFacility LOCAL3 LOCAL4 LOCAL5 LOCAL6 LOCAL7 |
| 41 | syn match sshdconfigSpecial "[*?]" |
| 42 | syn match sshdconfigNumber "\d\+" |
| 43 | syn match sshdconfigHostPort "\<\(\d\{1,3}\.\)\{3}\d\{1,3}\(:\d\+\)\?\>" |
| 44 | syn match sshdconfigHostPort "\<\([-a-zA-Z0-9]\+\.\)\+[-a-zA-Z0-9]\{2,}\(:\d\+\)\?\>" |
| 45 | syn match sshdconfigHostPort "\<\(\x\{,4}:\)\+\x\{,4}:\d\+\>" |
| 46 | syn match sshdconfigTime "\<\(\d\+[sSmMhHdDwW]\)\+\>" |
| 47 | |
| 48 | " Keywords |
Bram Moolenaar | 362e1a3 | 2006-03-06 23:29:24 +0000 | [diff] [blame] | 49 | syn keyword sshdconfigKeyword AcceptEnv AddressFamily |
| 50 | syn keyword sshdconfigKeyword AllowGroups AllowTcpForwarding |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 51 | syn keyword sshdconfigKeyword AllowUsers AuthorizedKeysFile Banner |
Bram Moolenaar | 362e1a3 | 2006-03-06 23:29:24 +0000 | [diff] [blame] | 52 | syn keyword sshdconfigKeyword ChallengeResponseAuthentication |
| 53 | syn keyword sshdconfigKeyword Ciphers ClientAliveCountMax |
| 54 | syn keyword sshdconfigKeyword ClientAliveInterval Compression |
| 55 | syn keyword sshdconfigKeyword DenyGroups DenyUsers GSSAPIAuthentication |
| 56 | syn keyword sshdconfigKeyword GSSAPICleanupCredentials GatewayPorts |
| 57 | syn keyword sshdconfigKeyword HostKey HostbasedAuthentication |
| 58 | syn keyword sshdconfigKeyword IgnoreRhosts IgnoreUserKnownHosts |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 59 | syn keyword sshdconfigKeyword KerberosAuthentication KerberosOrLocalPasswd |
| 60 | syn keyword sshdconfigKeyword KerberosTgtPassing KerberosTicketCleanup |
Bram Moolenaar | 362e1a3 | 2006-03-06 23:29:24 +0000 | [diff] [blame] | 61 | syn keyword sshdconfigKeyword KerberosGetAFSToken |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 62 | syn keyword sshdconfigKeyword KeyRegenerationInterval ListenAddress |
Bram Moolenaar | 362e1a3 | 2006-03-06 23:29:24 +0000 | [diff] [blame] | 63 | syn keyword sshdconfigKeyword LogLevel LoginGraceTime MACs MaxAuthTries |
| 64 | syn keyword sshdconfigKeyword MaxStartups PasswordAuthentication |
| 65 | syn keyword sshdconfigKeyword PermitEmptyPasswords PermitRootLogin |
| 66 | syn keyword sshdconfigKeyword PermitUserEnvironment PidFile Port |
| 67 | syn keyword sshdconfigKeyword PrintLastLog PrintMotd Protocol |
| 68 | syn keyword sshdconfigKeyword PubkeyAuthentication RSAAuthentication |
| 69 | syn keyword sshdconfigKeyword RhostsAuthentication RhostsRSAAuthentication |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 70 | syn keyword sshdconfigKeyword ServerKeyBits StrictModes Subsystem |
Bram Moolenaar | 362e1a3 | 2006-03-06 23:29:24 +0000 | [diff] [blame] | 71 | syn keyword sshdconfigKeyword ShowPatchLevel |
| 72 | syn keyword sshdconfigKeyword SyslogFacility TCPKeepAlive UseDNS |
| 73 | syn keyword sshdconfigKeyword UseLogin UsePAM UsePrivilegeSeparation |
| 74 | syn keyword sshdconfigKeyword X11DisplayOffset X11Forwarding |
| 75 | syn keyword sshdconfigKeyword X11UseLocalhost XAuthLocation |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 76 | |
| 77 | " Define the default highlighting |
| 78 | if version >= 508 || !exists("did_sshdconfig_syntax_inits") |
| 79 | if version < 508 |
| 80 | let did_sshdconfig_syntax_inits = 1 |
| 81 | command -nargs=+ HiLink hi link <args> |
| 82 | else |
| 83 | command -nargs=+ HiLink hi def link <args> |
| 84 | endif |
| 85 | |
| 86 | HiLink sshdconfigComment Comment |
| 87 | HiLink sshdconfigTodo Todo |
| 88 | HiLink sshdconfigHostPort sshdconfigConstant |
| 89 | HiLink sshdconfigTime sshdconfigConstant |
| 90 | HiLink sshdconfigNumber sshdconfigConstant |
| 91 | HiLink sshdconfigConstant Constant |
| 92 | HiLink sshdconfigYesNo sshdconfigEnum |
| 93 | HiLink sshdconfigCipher sshdconfigEnum |
| 94 | HiLink sshdconfigMAC sshdconfigEnum |
| 95 | HiLink sshdconfigRootLogin sshdconfigEnum |
| 96 | HiLink sshdconfigLogLevel sshdconfigEnum |
| 97 | HiLink sshdconfigSysLogFacility sshdconfigEnum |
| 98 | HiLink sshdconfigEnum Function |
| 99 | HiLink sshdconfigSpecial Special |
| 100 | HiLink sshdconfigKeyword Keyword |
| 101 | delcommand HiLink |
| 102 | endif |
| 103 | |
| 104 | let b:current_syntax = "sshdconfig" |