msql.vim 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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. " quit when a syntax file was already loaded
  11. if exists("b:current_syntax")
  12. finish
  13. endif
  14. if !exists("main_syntax")
  15. let main_syntax = 'msql'
  16. endif
  17. runtime! syntax/html.vim
  18. unlet b:current_syntax
  19. syn cluster htmlPreproc add=msqlRegion
  20. syn case match
  21. " Internal Variables
  22. syn keyword msqlIntVar ERRMSG contained
  23. " Env Variables
  24. syn keyword msqlEnvVar SERVER_SOFTWARE SERVER_NAME SERVER_URL GATEWAY_INTERFACE contained
  25. syn keyword msqlEnvVar SERVER_PROTOCOL SERVER_PORT REQUEST_METHOD PATH_INFO contained
  26. syn keyword msqlEnvVar PATH_TRANSLATED SCRIPT_NAME QUERY_STRING REMOTE_HOST contained
  27. syn keyword msqlEnvVar REMOTE_ADDR AUTH_TYPE REMOTE_USER CONTEN_TYPE contained
  28. syn keyword msqlEnvVar CONTENT_LENGTH HTTPS HTTPS_KEYSIZE HTTPS_SECRETKEYSIZE contained
  29. syn keyword msqlEnvVar HTTP_ACCECT HTTP_USER_AGENT HTTP_IF_MODIFIED_SINCE contained
  30. syn keyword msqlEnvVar HTTP_FROM HTTP_REFERER contained
  31. " Inlclude lLite
  32. syn include @msqlLite <sfile>:p:h/lite.vim
  33. " Msql Region
  34. syn region msqlRegion matchgroup=Delimiter start="<!$" start="<![^!->D]" end=">" contains=@msqlLite,msql.*
  35. " sync
  36. if exists("msql_minlines")
  37. exec "syn sync minlines=" . msql_minlines
  38. else
  39. syn sync minlines=100
  40. endif
  41. " Define the default highlighting.
  42. " Only when an item doesn't have highlighting yet
  43. hi def link msqlComment Comment
  44. hi def link msqlString String
  45. hi def link msqlNumber Number
  46. hi def link msqlFloat Float
  47. hi def link msqlIdentifier Identifier
  48. hi def link msqlGlobalIdentifier Identifier
  49. hi def link msqlIntVar Identifier
  50. hi def link msqlEnvVar Identifier
  51. hi def link msqlFunctions Function
  52. hi def link msqlRepeat Repeat
  53. hi def link msqlConditional Conditional
  54. hi def link msqlStatement Statement
  55. hi def link msqlType Type
  56. hi def link msqlInclude Include
  57. hi def link msqlDefine Define
  58. hi def link msqlSpecialChar SpecialChar
  59. hi def link msqlParentError Error
  60. hi def link msqlTodo Todo
  61. hi def link msqlOperator Operator
  62. hi def link msqlRelation Operator
  63. let b:current_syntax = "msql"
  64. if main_syntax == 'msql'
  65. unlet main_syntax
  66. endif
  67. " vim: ts=8