Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
denyhosts.vim290 linesDownload Raw Back to syntax
1" Vim syntax file2" Language:             denyhosts configuration file3" Previous Maintainer:  Nikolai Weibull <now@bitwi.se>4" Latest Revision:      2007-06-255 6if exists("b:current_syntax")7  finish8endif9 10let s:cpo_save = &cpo11set cpo&vim12 13syn keyword denyhostsTodo14      \ contained15      \ TODO16      \ FIXME17      \ XXX18      \ NOTE19 20syn case ignore21 22syn match   denyhostsComment23      \ contained24      \ display25      \ '#.*'26      \ contains=denyhostsTodo,27      \          @Spell28 29syn match   denyhostsBegin30      \ display31      \ '^'32      \ nextgroup=@denyhostsSetting,33      \           denyhostsComment34      \ skipwhite35 36syn cluster denyhostsSetting37      \ contains=denyhostsStringSetting,38      \          denyhostsBooleanSetting,39      \          denyhostsPathSetting,40      \          denyhostsNumericSetting,41      \          denyhostsTimespecSetting,42      \          denyhostsFormatSetting,43      \          denyhostsRegexSetting44 45syn keyword denyhostsStringSetting46      \ contained47      \ ADMIN_EMAIL48      \ SMTP_HOST49      \ SMTP_USERNAME50      \ SMTP_PASSWORD51      \ SMTP_FROM52      \ SMTP_SUBJECT53      \ BLOCK_SERVICE54      \ nextgroup=denyhostsStringDelimiter55      \ skipwhite56 57syn keyword denyhostsBooleanSetting58      \ contained59      \ SUSPICIOUS_LOGIN_REPORT_ALLOWED_HOSTS60      \ HOSTNAME_LOOKUP61      \ SYSLOG_REPORT62      \ RESET_ON_SUCCESS63      \ SYNC_UPLOAD64      \ SYNC_DOWNLOAD65      \ ALLOWED_HOSTS_HOSTNAME_LOOKUP66      \ nextgroup=denyhostsBooleanDelimiter67      \ skipwhite68 69syn keyword denyhostsPathSetting70      \ contained71      \ DAEMON_LOG72      \ PLUGIN_DENY73      \ PLUGIN_PURGE74      \ SECURE_LOG75      \ LOCK_FILE76      \ HOSTS_DENY77      \ WORK_DIR78      \ nextgroup=denyhostsPathDelimiter79      \ skipwhite80 81syn keyword denyhostsNumericSetting82      \ contained83      \ SYNC_DOWNLOAD_THRESHOLD84      \ SMTP_PORT85      \ PURGE_THRESHOLD86      \ DENY_THRESHOLD_INVALID87      \ DENY_THRESHOLD_VALID88      \ DENY_THRESHOLD_ROOT89      \ DENY_THRESHOLD_RESTRICTED90      \ nextgroup=denyhostsNumericDelimiter91      \ skipwhite92 93syn keyword denyhostsTimespecSetting94      \ contained95      \ DAEMON_SLEEP96      \ DAEMON_PURGE97      \ AGE_RESET_INVALID98      \ AGE_RESET_VALID99      \ AGE_RESET_ROOT100      \ AGE_RESET_RESTRICTED101      \ SYNC_INTERVAL102      \ SYNC_DOWNLOAD_RESILIENCY103      \ PURGE_DENY104      \ nextgroup=denyhostsTimespecDelimiter105      \ skipwhite106 107syn keyword denyhostsFormatSetting108      \ contained109      \ DAEMON_LOG_TIME_FORMAT110      \ DAEMON_LOG_MESSAGE_FORMAT111      \ SMTP_DATE_FORMAT112      \ nextgroup=denyhostsFormatDelimiter113      \ skipwhite114 115syn keyword denyhostsRegexSetting116      \ contained117      \ SSHD_FORMAT_REGEX118      \ FAILED_ENTRY_REGEX119      \ FAILED_ENTRY_REGEX2120      \ FAILED_ENTRY_REGEX3121      \ FAILED_ENTRY_REGEX4122      \ FAILED_ENTRY_REGEX5123      \ FAILED_ENTRY_REGEX6124      \ FAILED_ENTRY_REGEX7125      \ USERDEF_FAILED_ENTRY_REGEX126      \ SUCCESSFUL_ENTRY_REGEX127      \ nextgroup=denyhostsRegexDelimiter128      \ skipwhite129 130syn keyword denyhostURLSetting131      \ contained132      \ SYNC_SERVER133      \ nextgroup=denyhostsURLDelimiter134      \ skipwhite135 136syn match   denyhostsStringDelimiter137      \ contained138      \ display139      \ '[:=]'140      \ nextgroup=denyhostsString141      \ skipwhite142 143syn match   denyhostsBooleanDelimiter144      \ contained145      \ display146      \ '[:=]'147      \ nextgroup=@denyhostsBoolean148      \ skipwhite149 150syn match   denyhostsPathDelimiter151      \ contained152      \ display153      \ '[:=]'154      \ nextgroup=denyhostsPath155      \ skipwhite156 157syn match   denyhostsNumericDelimiter158      \ contained159      \ display160      \ '[:=]'161      \ nextgroup=denyhostsNumber162      \ skipwhite163 164syn match   denyhostsTimespecDelimiter165      \ contained166      \ display167      \ '[:=]'168      \ nextgroup=denyhostsTimespec169      \ skipwhite170 171syn match   denyhostsFormatDelimiter172      \ contained173      \ display174      \ '[:=]'175      \ nextgroup=denyhostsFormat176      \ skipwhite177 178syn match   denyhostsRegexDelimiter179      \ contained180      \ display181      \ '[:=]'182      \ nextgroup=denyhostsRegex183      \ skipwhite184 185syn match   denyhostsURLDelimiter186      \ contained187      \ display188      \ '[:=]'189      \ nextgroup=denyhostsURL190      \ skipwhite191 192syn match   denyhostsString193      \ contained194      \ display195      \ '.\+'196 197syn cluster denyhostsBoolean198      \ contains=denyhostsBooleanTrue,199      \          denyhostsBooleanFalse200 201syn match   denyhostsBooleanFalse202      \ contained203      \ display204      \ '.\+'205 206syn match   denyhostsBooleanTrue207      \ contained208      \ display209      \ '\s*\%(1\|t\%(rue\)\=\|y\%(es\)\=\)\>\s*$'210 211syn match   denyhostsPath212      \ contained213      \ display214      \ '.\+'215 216syn match   denyhostsNumber217      \ contained218      \ display219      \ '\d\+\>'220 221syn match   denyhostsTimespec222      \ contained223      \ display224      \ '\d\+[mhdwy]\>'225 226syn match   denyhostsFormat227      \ contained228      \ display229      \ '.\+'230      \ contains=denyhostsFormattingExpandos231 232syn match   denyhostsFormattingExpandos233      \ contained234      \ display235      \ '%.'236 237syn match   denyhostsRegex238      \ contained239      \ display240      \ '.\+'241 242" TODO: Perhaps come up with a better regex here?  There should really be a243" library for these kinds of generic regexes, that is, URLs, mail addresses, …244syn match   denyhostsURL245      \ contained246      \ display247      \ '.\+'248 249hi def link denyhostsTodo               Todo250hi def link denyhostsComment            Comment251hi def link denyhostsSetting            Keyword252hi def link denyhostsStringSetting      denyhostsSetting253hi def link denyhostsBooleanSetting     denyhostsSetting254hi def link denyhostsPathSetting        denyhostsSetting255hi def link denyhostsNumericSetting     denyhostsSetting256hi def link denyhostsTimespecSetting    denyhostsSetting257hi def link denyhostsFormatSetting      denyhostsSetting258hi def link denyhostsRegexSetting       denyhostsSetting259hi def link denyhostURLSetting          denyhostsSetting260hi def link denyhostsDelimiter          Normal261hi def link denyhostsStringDelimiter    denyhostsDelimiter262hi def link denyhostsBooleanDelimiter   denyhostsDelimiter263hi def link denyhostsPathDelimiter      denyhostsDelimiter264hi def link denyhostsNumericDelimiter   denyhostsDelimiter265hi def link denyhostsTimespecDelimiter  denyhostsDelimiter266hi def link denyhostsFormatDelimiter    denyhostsDelimiter267hi def link denyhostsRegexDelimiter     denyhostsDelimiter268hi def link denyhostsURLDelimiter       denyhostsDelimiter269hi def link denyhostsString             String270if exists('g:syntax_booleans_simple') || exists('b:syntax_booleans_simple')271  hi def link denyhostsBoolean          Boolean272  hi def link denyhostsBooleanFalse     denyhostsBoolean273  hi def link denyhostsBooleanTrue      denyhostsBoolean274else275  hi def    denyhostsBooleanTrue        term=bold ctermfg=Green guifg=Green276  hi def    denyhostsBooleanFalse       ctermfg=Red guifg=Red277endif278hi def link denyhostsPath               String279hi def link denyhostsNumber             Number280hi def link denyhostsTimespec           Number281hi def link denyhostsFormat             String282hi def link denyhostsFormattingExpandos Special283hi def link denyhostsRegex              String284hi def link denyhostsURL                String285 286let b:current_syntax = "denyhosts"287 288let &cpo = s:cpo_save289unlet s:cpo_save290 
codekingpro/portable-devtools · Team Ai