Permalink
Browse files

Added syntax for yes/no and enum constants.

Added more config options to keywords list.
  • Loading branch information...
1 parent b485163 commit 7fab590ae50dc7829012790ad32a2595ace26f80 @dhowden dhowden committed Feb 17, 2013
Showing with 13 additions and 1 deletion.
  1. +13 −1 Syntaxes/SSH-Config.tmLanguage
View
14 Syntaxes/SSH-Config.tmLanguage
@@ -14,7 +14,7 @@
<array>
<dict>
<key>match</key>
- <string>\b(AddressFamily|B(atchMode|indAddress)|C(hallengeResponseAuthentication|heckHostIP|iphers?|learAllForwardings|ompression(Level)?|onnect(Timeout|ionAttempts)|ontrolMaster|ontrolPath)|DynamicForward|E(nableSSHKeysign|scapeChar)|Forward(Agent|X11(Trusted)?)|G(SSAPI(Authentication|DelegateCredentials)|atewayPorts|lobalKnownHostsFile)|Host(KeyAlgorithms|KeyAlias|Name|basedAuthentication)|Identit(iesOnly|yFile)|L(ocalForward|ogLevel)|MACs|N(oHostAuthenticationForLocalhost|umberOfPasswordPrompts)|P(asswordAuthentication|ort|referredAuthentications|rotocol|roxyCommand|ubkeyAuthentication)|R(SAAuthentication|emoteForward|hostsRSAAuthentication)|S(erverAliveCountMax|erverAliveInterval|martcardDevice|trictHostKeyChecking)|TCPKeepAlive|U(sePrivilegedPort|ser(KnownHostsFile)?)|VerifyHostKeyDNS|XAuthLocation)\b</string>
+ <string>\b(AddressFamily|B(atchMode|indAddress)|C(hallengeResponseAuthentication|heckHostIP|iphers?|learAllForwardings|ompression(Level)?|onnect(Timeout|ionAttempts)|ontrolMaster|ontrolPath)|DynamicForward|E(nableSSHKeysign|scapeChar)|Forward(Agent|X11(Trusted)?)|G(SSAPI(Authentication|DelegateCredentials|CleanupCredentials)|atewayPorts|lobalKnownHostsFile)|Host(KeyAlgorithms|KeyAlias|Name|basedAuthentication)|Identit(iesOnly|yFile)|L(ocalForward|ogLevel)|MACs|N(oHostAuthenticationForLocalhost|umberOfPasswordPrompts)|P(asswordAuthentication|ort|referredAuthentications|rotocol|roxyCommand|ubkeyAuthentication)|R(SAAuthentication|emoteForward|hostsRSAAuthentication)|S(erverAliveCountMax|erverAliveInterval|martcardDevice|trictHostKeyChecking)|TCPKeepAlive|U(sePrivilegedPort|ser(KnownHostsFile)?)|VerifyHostKeyDNS|XAuthLocation)|AcceptEnv|UsePAM|X11Forwarding|Subsystem|SyslogFacility|LogLevel|(Kerberos(Authentication|OrLocalPasswd|TicketCleanup|GetAFSToken))\b</string>
<key>name</key>
<string>keyword.other.ssh-config</string>
</dict>
@@ -118,6 +118,18 @@
<key>name</key>
<string>constant.numeric.ssh-config</string>
</dict>
+ <dict>
+ <key>match</key>
+ <string>\b(yes|no)\b</string>
+ <key>name</key>
+ <string>constant.language.ssh-config</string>
+ </dict>
+ <dict>
+ <key>match</key>
+ <string>\b[A-Z_]+\b</string>
+ <key>name</key>
+ <string>constant.language.ssh-config</string>
+ </dict>
</array>
<key>scopeName</key>
<string>source.ssh-config</string>

0 comments on commit 7fab590

Please sign in to comment.