annotate runtime/syntax/msql.vim @ 3018:45ead8a0bede v7.3.281

updated for version 7.3.281 Problem: After using "expand('%:8')" the buffer name is changed. Solution: Make a copy of the file name before shortening it.
author Bram Moolenaar <bram@vim.org>
date Wed, 17 Aug 2011 15:23:23 +0200
parents 3fc0f57ecb91
children 43efa4f5a8ea
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 " Vim syntax file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 " Language: msql
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 " Maintainer: Lutz Eymers <ixtab@polzin.com>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 " URL: http://www.isp.de/data/msql.vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5 " Email: Subject: send syntax_vim.tgz
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 " Last Change: 2001 May 10
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 "
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 " Options msql_sql_query = 1 for SQL syntax highligthing inside strings
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 " msql_minlines = x to sync at least x lines backwards
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 " For version 5.x: Clear all syntax items
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 " For version 6.x: Quit when a syntax file was already loaded
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 if version < 600
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 syntax clear
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 elseif exists("b:current_syntax")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 if !exists("main_syntax")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 let main_syntax = 'msql'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 if version < 600
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 so <sfile>:p:h/html.vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 runtime! syntax/html.vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 unlet b:current_syntax
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 syn cluster htmlPreproc add=msqlRegion
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 syn case match
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 " Internal Variables
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 syn keyword msqlIntVar ERRMSG contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 " Env Variables
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 syn keyword msqlEnvVar SERVER_SOFTWARE SERVER_NAME SERVER_URL GATEWAY_INTERFACE contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 syn keyword msqlEnvVar SERVER_PROTOCOL SERVER_PORT REQUEST_METHOD PATH_INFO contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 syn keyword msqlEnvVar PATH_TRANSLATED SCRIPT_NAME QUERY_STRING REMOTE_HOST contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 syn keyword msqlEnvVar REMOTE_ADDR AUTH_TYPE REMOTE_USER CONTEN_TYPE contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 syn keyword msqlEnvVar CONTENT_LENGTH HTTPS HTTPS_KEYSIZE HTTPS_SECRETKEYSIZE contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 syn keyword msqlEnvVar HTTP_ACCECT HTTP_USER_AGENT HTTP_IF_MODIFIED_SINCE contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 syn keyword msqlEnvVar HTTP_FROM HTTP_REFERER contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 " Inlclude lLite
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 syn include @msqlLite <sfile>:p:h/lite.vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 " Msql Region
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 syn region msqlRegion matchgroup=Delimiter start="<!$" start="<![^!->D]" end=">" contains=@msqlLite,msql.*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 " sync
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 if exists("msql_minlines")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 exec "syn sync minlines=" . msql_minlines
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 syn sync minlines=100
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 " Define the default highlighting.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60 " For version 5.7 and earlier: only when not done already
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61 " For version 5.8 and later: only when an item doesn't have highlighting yet
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62 if version >= 508 || !exists("did_msql_syn_inits")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63 if version < 508
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64 let did_msql_syn_inits = 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65 command -nargs=+ HiLink hi link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67 command -nargs=+ HiLink hi def link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
69
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70 HiLink msqlComment Comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
71 HiLink msqlString String
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72 HiLink msqlNumber Number
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73 HiLink msqlFloat Float
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
74 HiLink msqlIdentifier Identifier
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75 HiLink msqlGlobalIdentifier Identifier
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
76 HiLink msqlIntVar Identifier
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
77 HiLink msqlEnvVar Identifier
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
78 HiLink msqlFunctions Function
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
79 HiLink msqlRepeat Repeat
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
80 HiLink msqlConditional Conditional
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
81 HiLink msqlStatement Statement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
82 HiLink msqlType Type
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
83 HiLink msqlInclude Include
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
84 HiLink msqlDefine Define
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
85 HiLink msqlSpecialChar SpecialChar
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
86 HiLink msqlParentError Error
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
87 HiLink msqlTodo Todo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
88 HiLink msqlOperator Operator
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
89 HiLink msqlRelation Operator
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
90
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
91 delcommand HiLink
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
92 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
93
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
94 let b:current_syntax = "msql"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
95
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
96 if main_syntax == 'msql'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
97 unlet main_syntax
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
98 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
99
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
100 " vim: ts=8