home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / mac / vim55rt.sit / runtime / syntax / msql.vim < prev    next >
Encoding:
Text File  |  1999-09-25  |  2.6 KB  |  78 lines  |  [TEXT/VIM!]

  1. " Vim syntax file
  2. " Language:    msql
  3. " Maintainer:    Lutz Eymers <ixtab@polzin.com>
  4. " URL:        http://www-public.rz.uni-duesseldorf.de/~eymers/vim/syntax
  5. " Email:        Subject: send syntax_vim.tgz
  6. " Last change:    1999 Jun 14
  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. " Remove any old syntax stuff hanging around
  12. syn clear
  13.  
  14. if !exists("main_syntax")
  15.   let main_syntax = 'msql'
  16. endif
  17.  
  18. so <sfile>:p:h/html.vim
  19. syn cluster htmlPreproc add=msqlRegion
  20.  
  21. syn case match
  22.  
  23. " Internal Variables
  24. syn keyword msqlIntVar ERRMSG contained
  25.  
  26. " Env Variables
  27. syn keyword msqlEnvVar SERVER_SOFTWARE SERVER_NAME SERVER_URL GATEWAY_INTERFACE contained
  28. syn keyword msqlEnvVar SERVER_PROTOCOL SERVER_PORT REQUEST_METHOD PATH_INFO  contained
  29. syn keyword msqlEnvVar PATH_TRANSLATED SCRIPT_NAME QUERY_STRING REMOTE_HOST contained
  30. syn keyword msqlEnvVar REMOTE_ADDR AUTH_TYPE REMOTE_USER CONTEN_TYPE  contained
  31. syn keyword msqlEnvVar CONTENT_LENGTH HTTPS HTTPS_KEYSIZE HTTPS_SECRETKEYSIZE  contained
  32. syn keyword msqlEnvVar HTTP_ACCECT HTTP_USER_AGENT HTTP_IF_MODIFIED_SINCE  contained
  33. syn keyword msqlEnvVar HTTP_FROM HTTP_REFERER contained
  34.  
  35. " Inlclude lLite
  36. syn include @msqlLite <sfile>:p:h/lite.vim
  37.  
  38. " Msql Region
  39. syn region msqlRegion matchgroup=Delimiter start="<!$" start="<![^!->D]" end=">" contains=@msqlLite,msql.*
  40.  
  41. " sync
  42. if exists("msql_minlines")
  43.   exec "syn sync minlines=" . msql_minlines
  44. endif
  45.  
  46. if !exists("did_msql_syntax_inits")
  47.   let did_msql_syntax_inits = 1
  48.   " The default methods for highlighting.  Can be overridden later
  49.   hi link msqlComment                   Comment
  50.   hi link msqlString                    String
  51.   hi link msqlNumber                    Number
  52.   hi link msqlFloat                     Float
  53.   hi msqlIdentifier guifg=DarkGrey ctermfg=Brown
  54.   hi msqlGlobalIdentifier guifg=DarkGrey ctermfg=Brown
  55.   hi link msqlFunctions                 Function
  56.   hi link msqlRepeat                    Repeat
  57.   hi link msqlConditional               Conditional
  58.   hi link msqlStatement                 Statement
  59.   hi link msqlType                      Type
  60.   hi link msqlInclude                   Include
  61.   hi link msqlDefine                    Define
  62.   hi link msqlSpecialChar               SpecialChar
  63.   hi link msqlParentError            Error
  64.   hi link msqlTodo                      Todo
  65.   hi msqlRelation guifg=SeaGreen ctermfg=DarkGreen
  66.   hi msqlOperator guifg=SeaGreen ctermfg=DarkGreen
  67.   hi msqlIntVar guifg=Red ctermfg=DarkRed
  68.   hi msqlEnvVar guifg=Red ctermfg=DarkRed
  69. endif
  70.  
  71. let b:current_syntax = "msql"
  72.  
  73. if main_syntax == 'msql'
  74.   unlet main_syntax
  75. endif
  76.  
  77. " vim: ts=8
  78.