msql.vim (2390B)
1 " Vim syntax file 2 " Language: msql 3 " Maintainer: Lutz Eymers <ixtab@polzin.com> 4 " URL: http://www.isp.de/data/msql.vim 5 " Email: Subject: send syntax_vim.tgz 6 " Last Change: 2001 May 10 7 " 8 " Options msql_sql_query = 1 for SQL syntax highligthing inside strings 9 " msql_minlines = x to sync at least x lines backwards 10 11 " quit when a syntax file was already loaded 12 if exists("b:current_syntax") 13 finish 14 endif 15 16 if !exists("main_syntax") 17 let main_syntax = 'msql' 18 endif 19 20 runtime! syntax/html.vim 21 unlet b:current_syntax 22 23 syn cluster htmlPreproc add=msqlRegion 24 25 syn case match 26 27 " Internal Variables 28 syn keyword msqlIntVar ERRMSG contained 29 30 " Env Variables 31 syn keyword msqlEnvVar SERVER_SOFTWARE SERVER_NAME SERVER_URL GATEWAY_INTERFACE contained 32 syn keyword msqlEnvVar SERVER_PROTOCOL SERVER_PORT REQUEST_METHOD PATH_INFO contained 33 syn keyword msqlEnvVar PATH_TRANSLATED SCRIPT_NAME QUERY_STRING REMOTE_HOST contained 34 syn keyword msqlEnvVar REMOTE_ADDR AUTH_TYPE REMOTE_USER CONTEN_TYPE contained 35 syn keyword msqlEnvVar CONTENT_LENGTH HTTPS HTTPS_KEYSIZE HTTPS_SECRETKEYSIZE contained 36 syn keyword msqlEnvVar HTTP_ACCECT HTTP_USER_AGENT HTTP_IF_MODIFIED_SINCE contained 37 syn keyword msqlEnvVar HTTP_FROM HTTP_REFERER contained 38 39 " Inlclude lLite 40 syn include @msqlLite <sfile>:p:h/lite.vim 41 42 " Msql Region 43 syn region msqlRegion matchgroup=Delimiter start="<!$" start="<![^!->D]" end=">" contains=@msqlLite,msql.* 44 45 " sync 46 if exists("msql_minlines") 47 exec "syn sync minlines=" . msql_minlines 48 else 49 syn sync minlines=100 50 endif 51 52 " Define the default highlighting. 53 " Only when an item doesn't have highlighting yet 54 55 hi def link msqlComment Comment 56 hi def link msqlString String 57 hi def link msqlNumber Number 58 hi def link msqlFloat Float 59 hi def link msqlIdentifier Identifier 60 hi def link msqlGlobalIdentifier Identifier 61 hi def link msqlIntVar Identifier 62 hi def link msqlEnvVar Identifier 63 hi def link msqlFunctions Function 64 hi def link msqlRepeat Repeat 65 hi def link msqlConditional Conditional 66 hi def link msqlStatement Statement 67 hi def link msqlType Type 68 hi def link msqlInclude Include 69 hi def link msqlDefine Define 70 hi def link msqlSpecialChar SpecialChar 71 hi def link msqlParentError Error 72 hi def link msqlTodo Todo 73 hi def link msqlOperator Operator 74 hi def link msqlRelation Operator 75 76 77 let b:current_syntax = "msql" 78 79 if main_syntax == 'msql' 80 unlet main_syntax 81 endif 82 83 " vim: ts=8