annotate runtime/syntax/ruby.vim @ 4869:a5352e73dc00

Update runtime files.
author Bram Moolenaar <bram@vim.org>
date Wed, 12 Jun 2013 21:29:15 +0200
parents dd5c1983e355
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
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents: 557
diff changeset
2 " Language: Ruby
f24a95dae8ee updated for version 7.0d05
vimboss
parents: 557
diff changeset
3 " Maintainer: Doug Kearns <dougkearns@gmail.com>
4869
a5352e73dc00 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2225
diff changeset
4 " URL: https://github.com/vim-ruby/vim-ruby
831
f24a95dae8ee updated for version 7.0d05
vimboss
parents: 557
diff changeset
5 " Release Coordinator: Doug Kearns <dougkearns@gmail.com>
529
0d6092bb72e6 updated for version 7.0148
vimboss
parents: 36
diff changeset
6 " ----------------------------------------------------------------------------
0d6092bb72e6 updated for version 7.0148
vimboss
parents: 36
diff changeset
7 "
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 " Previous Maintainer: Mirko Nasato
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 " Thanks to perl.vim authors, and to Reimer Behrends. :-) (MN)
529
0d6092bb72e6 updated for version 7.0148
vimboss
parents: 36
diff changeset
10 " ----------------------------------------------------------------------------
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11
1190
4e90dc161511 updated for version 7.1b
vimboss
parents: 1121
diff changeset
12 if exists("b:current_syntax")
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15
529
0d6092bb72e6 updated for version 7.0148
vimboss
parents: 36
diff changeset
16 if has("folding") && exists("ruby_fold")
0d6092bb72e6 updated for version 7.0148
vimboss
parents: 36
diff changeset
17 setlocal foldmethod=syntax
0d6092bb72e6 updated for version 7.0148
vimboss
parents: 36
diff changeset
18 endif
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19
2225
dd5c1983e355 Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
20 syn cluster rubyNotTop contains=@rubyExtendedStringSpecial,@rubyRegexpSpecial,@rubyDeclaration,rubyConditional,rubyExceptional,rubyMethodExceptional,rubyTodo
1668
0b796e045c42 updated for version 7.2b-000
vimboss
parents: 1619
diff changeset
21
529
0d6092bb72e6 updated for version 7.0148
vimboss
parents: 36
diff changeset
22 if exists("ruby_space_errors")
0d6092bb72e6 updated for version 7.0148
vimboss
parents: 36
diff changeset
23 if !exists("ruby_no_trail_space_error")
0d6092bb72e6 updated for version 7.0148
vimboss
parents: 36
diff changeset
24 syn match rubySpaceError display excludenl "\s\+$"
0d6092bb72e6 updated for version 7.0148
vimboss
parents: 36
diff changeset
25 endif
0d6092bb72e6 updated for version 7.0148
vimboss
parents: 36
diff changeset
26 if !exists("ruby_no_tab_space_error")
0d6092bb72e6 updated for version 7.0148
vimboss
parents: 36
diff changeset
27 syn match rubySpaceError display " \+\t"me=e-1
0d6092bb72e6 updated for version 7.0148
vimboss
parents: 36
diff changeset
28 endif
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30
1121
e63691e7c504 updated for version 7.1a
vimboss
parents: 831
diff changeset
31 " Operators
e63691e7c504 updated for version 7.1a
vimboss
parents: 831
diff changeset
32 if exists("ruby_operators")
4869
a5352e73dc00 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2225
diff changeset
33 syn match rubyOperator "[~!^&|*/%+-]\|\%(class\s*\)\@<!<<\|<=>\|<=\|\%(<\|\<class\s\+\u\w*\s*\)\@<!<[^<]\@=\|===\|==\|=\~\|>>\|>=\|=\@<!>\|\*\*\|\.\.\.\|\.\.\|::"
a5352e73dc00 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2225
diff changeset
34 syn match rubyOperator "->\|-=\|/=\|\*\*=\|\*=\|&&=\|&=\|&&\|||=\||=\|||\|%=\|+=\|!\~\|!="
1668
0b796e045c42 updated for version 7.2b-000
vimboss
parents: 1619
diff changeset
35 syn region rubyBracketOperator matchgroup=rubyOperator start="\%(\w[?!]\=\|[]})]\)\@<=\[\s*" end="\s*]" contains=ALLBUT,@rubyNotTop
1121
e63691e7c504 updated for version 7.1a
vimboss
parents: 831
diff changeset
36 endif
e63691e7c504 updated for version 7.1a
vimboss
parents: 831
diff changeset
37
529
0d6092bb72e6 updated for version 7.0148
vimboss
parents: 36
diff changeset
38 " Expression Substitution and Backslash Notation
2225
dd5c1983e355 Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
39 syn match rubyStringEscape "\\\\\|\\[abefnrstv]\|\\\o\{1,3}\|\\x\x\{1,2}" contained display
dd5c1983e355 Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
40 syn match rubyStringEscape "\%(\\M-\\C-\|\\C-\\M-\|\\M-\\c\|\\c\\M-\|\\c\|\\C-\|\\M-\)\%(\\\o\{1,3}\|\\x\x\{1,2}\|\\\=\S\)" contained display
dd5c1983e355 Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
41 syn match rubyQuoteEscape "\\[\\']" contained display
1121
e63691e7c504 updated for version 7.1a
vimboss
parents: 831
diff changeset
42
1668
0b796e045c42 updated for version 7.2b-000
vimboss
parents: 1619
diff changeset
43 syn region rubyInterpolation matchgroup=rubyInterpolationDelimiter start="#{" end="}" contained contains=ALLBUT,@rubyNotTop
2225
dd5c1983e355 Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
44 syn match rubyInterpolation "#\%(\$\|@@\=\)\w\+" display contained contains=rubyInterpolationDelimiter,rubyInstanceVariable,rubyClassVariable,rubyGlobalVariable,rubyPredefinedVariable
1121
e63691e7c504 updated for version 7.1a
vimboss
parents: 831
diff changeset
45 syn match rubyInterpolationDelimiter "#\ze\%(\$\|@@\=\)\w\+" display contained
2225
dd5c1983e355 Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
46 syn match rubyInterpolation "#\$\%(-\w\|\W\)" display contained contains=rubyInterpolationDelimiter,rubyPredefinedVariable,rubyInvalidVariable
1190
4e90dc161511 updated for version 7.1b
vimboss
parents: 1121
diff changeset
47 syn match rubyInterpolationDelimiter "#\ze\$\%(-\w\|\W\)" display contained
2225
dd5c1983e355 Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
48 syn region rubyNoInterpolation start="\\#{" end="}" contained
1121
e63691e7c504 updated for version 7.1a
vimboss
parents: 831
diff changeset
49 syn match rubyNoInterpolation "\\#{" display contained
e63691e7c504 updated for version 7.1a
vimboss
parents: 831
diff changeset
50 syn match rubyNoInterpolation "\\#\%(\$\|@@\=\)\w\+" display contained
2225
dd5c1983e355 Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
51 syn match rubyNoInterpolation "\\#\$\W" display contained
529
0d6092bb72e6 updated for version 7.0148
vimboss
parents: 36
diff changeset
52
0d6092bb72e6 updated for version 7.0148
vimboss
parents: 36
diff changeset
53 syn match rubyDelimEscape "\\[(<{\[)>}\]]" transparent display contained contains=NONE
0d6092bb72e6 updated for version 7.0148
vimboss
parents: 36
diff changeset
54
2225
dd5c1983e355 Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
55 syn region rubyNestedParentheses start="(" skip="\\\\\|\\)" matchgroup=rubyString end=")" transparent contained
dd5c1983e355 Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
56 syn region rubyNestedCurlyBraces start="{" skip="\\\\\|\\}" matchgroup=rubyString end="}" transparent contained
dd5c1983e355 Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
57 syn region rubyNestedAngleBrackets start="<" skip="\\\\\|\\>" matchgroup=rubyString end=">" transparent contained
dd5c1983e355 Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
58 syn region rubyNestedSquareBrackets start="\[" skip="\\\\\|\\\]" matchgroup=rubyString end="\]" transparent contained
529
0d6092bb72e6 updated for version 7.0148
vimboss
parents: 36
diff changeset
59
1668
0b796e045c42 updated for version 7.2b-000
vimboss
parents: 1619
diff changeset
60 " These are mostly Oniguruma ready
2225
dd5c1983e355 Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
61 syn region rubyRegexpComment matchgroup=rubyRegexpSpecial start="(?#" skip="\\)" end=")" contained
dd5c1983e355 Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
62 syn region rubyRegexpParens matchgroup=rubyRegexpSpecial start="(\(?:\|?<\=[=!]\|?>\|?<[a-z_]\w*>\|?[imx]*-[imx]*:\=\|\%(?#\)\@!\)" skip="\\)" end=")" contained transparent contains=@rubyRegexpSpecial
dd5c1983e355 Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
63 syn region rubyRegexpBrackets matchgroup=rubyRegexpCharClass start="\[\^\=" skip="\\\]" end="\]" contained transparent contains=rubyStringEscape,rubyRegexpEscape,rubyRegexpCharClass oneline
dd5c1983e355 Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
64 syn match rubyRegexpCharClass "\\[DdHhSsWw]" contained display
dd5c1983e355 Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
65 syn match rubyRegexpCharClass "\[:\^\=\%(alnum\|alpha\|ascii\|blank\|cntrl\|digit\|graph\|lower\|print\|punct\|space\|upper\|xdigit\):\]" contained
dd5c1983e355 Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
66 syn match rubyRegexpEscape "\\[].*?+^$|\\/(){}[]" contained
dd5c1983e355 Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
67 syn match rubyRegexpQuantifier "[*?+][?+]\=" contained display
dd5c1983e355 Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
68 syn match rubyRegexpQuantifier "{\d\+\%(,\d*\)\=}?\=" contained display
dd5c1983e355 Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
69 syn match rubyRegexpAnchor "[$^]\|\\[ABbGZz]" contained display
dd5c1983e355 Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
70 syn match rubyRegexpDot "\." contained display
dd5c1983e355 Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
71 syn match rubyRegexpSpecial "|" contained display
dd5c1983e355 Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
72 syn match rubyRegexpSpecial "\\[1-9]\d\=\d\@!" contained display
1668
0b796e045c42 updated for version 7.2b-000
vimboss
parents: 1619
diff changeset
73 syn match rubyRegexpSpecial "\\k<\%([a-z_]\w*\|-\=\d\+\)\%([+-]\d\+\)\=>" contained display
0b796e045c42 updated for version 7.2b-000
vimboss
parents: 1619
diff changeset
74 syn match rubyRegexpSpecial "\\k'\%([a-z_]\w*\|-\=\d\+\)\%([+-]\d\+\)\='" contained display
0b796e045c42 updated for version 7.2b-000
vimboss
parents: 1619
diff changeset
75 syn match rubyRegexpSpecial "\\g<\%([a-z_]\w*\|-\=\d\+\)>" contained display
0b796e045c42 updated for version 7.2b-000
vimboss
parents: 1619
diff changeset
76 syn match rubyRegexpSpecial "\\g'\%([a-z_]\w*\|-\=\d\+\)'" contained display
0b796e045c42 updated for version 7.2b-000
vimboss
parents: 1619
diff changeset
77
2225
dd5c1983e355 Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
78 syn cluster rubyStringSpecial contains=rubyInterpolation,rubyNoInterpolation,rubyStringEscape
dd5c1983e355 Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
79 syn cluster rubyExtendedStringSpecial contains=@rubyStringSpecial,rubyNestedParentheses,rubyNestedCurlyBraces,rubyNestedAngleBrackets,rubyNestedSquareBrackets
dd5c1983e355 Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
80 syn cluster rubyRegexpSpecial contains=rubyInterpolation,rubyNoInterpolation,rubyStringEscape,rubyRegexpSpecial,rubyRegexpEscape,rubyRegexpBrackets,rubyRegexpCharClass,rubyRegexpDot,rubyRegexpQuantifier,rubyRegexpAnchor,rubyRegexpParens,rubyRegexpComment
529
0d6092bb72e6 updated for version 7.0148
vimboss
parents: 36
diff changeset
81
0d6092bb72e6 updated for version 7.0148
vimboss
parents: 36
diff changeset
82 " Numbers and ASCII Codes
1190
4e90dc161511 updated for version 7.1b
vimboss
parents: 1121
diff changeset
83 syn match rubyASCIICode "\%(\w\|[]})\"'/]\)\@<!\%(?\%(\\M-\\C-\|\\C-\\M-\|\\M-\\c\|\\c\\M-\|\\c\|\\C-\|\\M-\)\=\%(\\\o\{1,3}\|\\x\x\{1,2}\|\\\=\S\)\)"
2225
dd5c1983e355 Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
84 syn match rubyInteger "\%(\%(\w\|[]})\"']\s*\)\@<!-\)\=\<0[xX]\x\+\%(_\x\+\)*\>" display
dd5c1983e355 Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
85 syn match rubyInteger "\%(\%(\w\|[]})\"']\s*\)\@<!-\)\=\<\%(0[dD]\)\=\%(0\|[1-9]\d*\%(_\d\+\)*\)\>" display
dd5c1983e355 Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
86 syn match rubyInteger "\%(\%(\w\|[]})\"']\s*\)\@<!-\)\=\<0[oO]\=\o\+\%(_\o\+\)*\>" display
dd5c1983e355 Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
87 syn match rubyInteger "\%(\%(\w\|[]})\"']\s*\)\@<!-\)\=\<0[bB][01]\+\%(_[01]\+\)*\>" display
dd5c1983e355 Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
88 syn match rubyFloat "\%(\%(\w\|[]})\"']\s*\)\@<!-\)\=\<\%(0\|[1-9]\d*\%(_\d\+\)*\)\.\d\+\%(_\d\+\)*\>" display
dd5c1983e355 Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
89 syn match rubyFloat "\%(\%(\w\|[]})\"']\s*\)\@<!-\)\=\<\%(0\|[1-9]\d*\%(_\d\+\)*\)\%(\.\d\+\%(_\d\+\)*\)\=\%([eE][-+]\=\d\+\%(_\d\+\)*\)\>" display
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
90
529
0d6092bb72e6 updated for version 7.0148
vimboss
parents: 36
diff changeset
91 " Identifiers
0d6092bb72e6 updated for version 7.0148
vimboss
parents: 36
diff changeset
92 syn match rubyLocalVariableOrMethod "\<[_[:lower:]][_[:alnum:]]*[?!=]\=" contains=NONE display transparent
0d6092bb72e6 updated for version 7.0148
vimboss
parents: 36
diff changeset
93 syn match rubyBlockArgument "&[_[:lower:]][_[:alnum:]]" contains=NONE display transparent
0d6092bb72e6 updated for version 7.0148
vimboss
parents: 36
diff changeset
94
2225
dd5c1983e355 Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
95 syn match rubyConstant "\%(\%([.@$]\@<!\.\)\@<!\<\|::\)\_s*\zs\u\w*\%(\>\|::\)\@=\%(\s*(\)\@!"
4869
a5352e73dc00 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2225
diff changeset
96 syn match rubyClassVariable "@@\%(\h\|[^\x00-\x7F]\)\%(\w\|[^\x00-\x7F]\)*" display
a5352e73dc00 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2225
diff changeset
97 syn match rubyInstanceVariable "@\%(\h\|[^\x00-\x7F]\)\%(\w\|[^\x00-\x7F]\)*" display
a5352e73dc00 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2225
diff changeset
98 syn match rubyGlobalVariable "$\%(\%(\h\|[^\x00-\x7F]\)\%(\w\|[^\x00-\x7F]\)*\|-.\)"
a5352e73dc00 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2225
diff changeset
99 syn match rubySymbol "[]})\"':]\@<!:\%(\^\|\~\|<<\|<=>\|<=\|<\|===\|[=!]=\|[=!]\~\|!\|>>\|>=\|>\||\|-@\|-\|/\|\[]=\|\[]\|\*\*\|\*\|&\|%\|+@\|+\|`\)"
2225
dd5c1983e355 Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
100 syn match rubySymbol "[]})\"':]\@<!:\$\%(-.\|[`~<=>_,;:!?/.'"@$*\&+0]\)"
4869
a5352e73dc00 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2225
diff changeset
101 syn match rubySymbol "[]})\"':]\@<!:\%(\$\|@@\=\)\=\%(\h\|[^\x00-\x7F]\)\%(\w\|[^\x00-\x7F]\)*"
a5352e73dc00 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2225
diff changeset
102 syn match rubySymbol "[]})\"':]\@<!:\%(\h\|[^\x00-\x7F]\)\%(\w\|[^\x00-\x7F]\)*\%([?!=]>\@!\)\="
2225
dd5c1983e355 Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
103 syn match rubySymbol "\%([{(,]\_s*\)\@<=\l\w*[!?]\=::\@!"he=e-1
4869
a5352e73dc00 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2225
diff changeset
104 syn match rubySymbol "[]})\"':]\@<!\%(\h\|[^\x00-\x7F]\)\%(\w\|[^\x00-\x7F]\)*[!?]\=:\s\@="he=e-1
a5352e73dc00 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2225
diff changeset
105 syn match rubySymbol "\%([{(,]\_s*\)\@<=[[:space:],{]\l\w*[!?]\=::\@!"hs=s+1,he=e-1
a5352e73dc00 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2225
diff changeset
106 syn match rubySymbol "[[:space:],{]\%(\h\|[^\x00-\x7F]\)\%(\w\|[^\x00-\x7F]\)*[!?]\=:\s\@="hs=s+1,he=e-1
2225
dd5c1983e355 Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
107 syn region rubySymbol start="[]})\"':]\@<!:'" end="'" skip="\\\\\|\\'" contains=rubyQuoteEscape fold
dd5c1983e355 Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
108 syn region rubySymbol start="[]})\"':]\@<!:\"" end="\"" skip="\\\\\|\\\"" contains=@rubyStringSpecial fold
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
109
4869
a5352e73dc00 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2225
diff changeset
110 syn match rubyBlockParameter "\%(\h\|[^\x00-\x7F]\)\%(\w\|[^\x00-\x7F]\)*" contained
2225
dd5c1983e355 Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
111 syn region rubyBlockParameterList start="\%(\%(\<do\>\|{\)\s*\)\@<=|" end="|" oneline display contains=rubyBlockParameter
1190
4e90dc161511 updated for version 7.1b
vimboss
parents: 1121
diff changeset
112
2225
dd5c1983e355 Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
113 syn match rubyInvalidVariable "$[^ A-Za-z_-]"
4869
a5352e73dc00 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2225
diff changeset
114 syn match rubyPredefinedVariable #$[!$&"'*+,./0:;<=>?@\`~]#
a5352e73dc00 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2225
diff changeset
115 syn match rubyPredefinedVariable "$\d\+" display
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 529
diff changeset
116 syn match rubyPredefinedVariable "$_\>" display
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 529
diff changeset
117 syn match rubyPredefinedVariable "$-[0FIKadilpvw]\>" display
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 529
diff changeset
118 syn match rubyPredefinedVariable "$\%(deferr\|defout\|stderr\|stdin\|stdout\)\>" display
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 529
diff changeset
119 syn match rubyPredefinedVariable "$\%(DEBUG\|FILENAME\|KCODE\|LOADED_FEATURES\|LOAD_PATH\|PROGRAM_NAME\|SAFE\|VERBOSE\)\>" display
529
0d6092bb72e6 updated for version 7.0148
vimboss
parents: 36
diff changeset
120 syn match rubyPredefinedConstant "\%(\%(\.\@<!\.\)\@<!\|::\)\_s*\zs\%(MatchingData\|ARGF\|ARGV\|ENV\)\>\%(\s*(\)\@!"
4869
a5352e73dc00 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2225
diff changeset
121 syn match rubyPredefinedConstant "\%(\%(\.\@<!\.\)\@<!\|::\)\_s*\zs\%(DATA\|FALSE\|NIL\)\>\%(\s*(\)\@!"
a5352e73dc00 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2225
diff changeset
122 syn match rubyPredefinedConstant "\%(\%(\.\@<!\.\)\@<!\|::\)\_s*\zs\%(STDERR\|STDIN\|STDOUT\|TOPLEVEL_BINDING\|TRUE\)\>\%(\s*(\)\@!"
a5352e73dc00 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2225
diff changeset
123 syn match rubyPredefinedConstant "\%(\%(\.\@<!\.\)\@<!\|::\)\_s*\zs\%(RUBY_\%(VERSION\|RELEASE_DATE\|PLATFORM\|PATCHLEVEL\|REVISION\|DESCRIPTION\|COPYRIGHT\|ENGINE\)\)\>\%(\s*(\)\@!"
529
0d6092bb72e6 updated for version 7.0148
vimboss
parents: 36
diff changeset
124
0d6092bb72e6 updated for version 7.0148
vimboss
parents: 36
diff changeset
125 " Normal Regular Expression
4869
a5352e73dc00 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2225
diff changeset
126 syn region rubyRegexp matchgroup=rubyRegexpDelimiter start="\%(\%(^\|\<\%(and\|or\|while\|until\|unless\|if\|elsif\|when\|not\|then\|else\)\|[;\~=!|&(,[<>?:*+-]\)\s*\)\@<=/" end="/[iomxneus]*" skip="\\\\\|\\/" contains=@rubyRegexpSpecial fold
1668
0b796e045c42 updated for version 7.2b-000
vimboss
parents: 1619
diff changeset
127 syn region rubyRegexp matchgroup=rubyRegexpDelimiter start="\%(\h\k*\s\+\)\@<=/[ \t=]\@!" end="/[iomxneus]*" skip="\\\\\|\\/" contains=@rubyRegexpSpecial fold
0b796e045c42 updated for version 7.2b-000
vimboss
parents: 1619
diff changeset
128
0b796e045c42 updated for version 7.2b-000
vimboss
parents: 1619
diff changeset
129 " Generalized Regular Expression
4869
a5352e73dc00 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2225
diff changeset
130 syn region rubyRegexp matchgroup=rubyRegexpDelimiter start="%r\z([~`!@#$%^&*_\-+=|\:;"',.? /]\)" end="\z1[iomxneus]*" skip="\\\\\|\\\z1" contains=@rubyRegexpSpecial fold
a5352e73dc00 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2225
diff changeset
131 syn region rubyRegexp matchgroup=rubyRegexpDelimiter start="%r{" end="}[iomxneus]*" skip="\\\\\|\\}" contains=@rubyRegexpSpecial fold
a5352e73dc00 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2225
diff changeset
132 syn region rubyRegexp matchgroup=rubyRegexpDelimiter start="%r<" end=">[iomxneus]*" skip="\\\\\|\\>" contains=@rubyRegexpSpecial,rubyNestedAngleBrackets,rubyDelimEscape fold
a5352e73dc00 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2225
diff changeset
133 syn region rubyRegexp matchgroup=rubyRegexpDelimiter start="%r\[" end="\][iomxneus]*" skip="\\\\\|\\\]" contains=@rubyRegexpSpecial fold
a5352e73dc00 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2225
diff changeset
134 syn region rubyRegexp matchgroup=rubyRegexpDelimiter start="%r(" end=")[iomxneus]*" skip="\\\\\|\\)" contains=@rubyRegexpSpecial fold
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
135
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
136 " Normal String and Shell Command Output
4869
a5352e73dc00 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2225
diff changeset
137 syn region rubyString matchgroup=rubyStringDelimiter start="\"" end="\"" skip="\\\\\|\\\"" contains=@rubyStringSpecial,@Spell fold
a5352e73dc00 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2225
diff changeset
138 syn region rubyString matchgroup=rubyStringDelimiter start="'" end="'" skip="\\\\\|\\'" contains=rubyQuoteEscape,@Spell fold
1121
e63691e7c504 updated for version 7.1a
vimboss
parents: 831
diff changeset
139 syn region rubyString matchgroup=rubyStringDelimiter start="`" end="`" skip="\\\\\|\\`" contains=@rubyStringSpecial fold
529
0d6092bb72e6 updated for version 7.0148
vimboss
parents: 36
diff changeset
140
0d6092bb72e6 updated for version 7.0148
vimboss
parents: 36
diff changeset
141 " Generalized Single Quoted String, Symbol and Array of Strings
4869
a5352e73dc00 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2225
diff changeset
142 syn region rubyString matchgroup=rubyStringDelimiter start="%[qwi]\z([~`!@#$%^&*_\-+=|\:;"',.?/]\)" end="\z1" skip="\\\\\|\\\z1" fold
a5352e73dc00 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2225
diff changeset
143 syn region rubyString matchgroup=rubyStringDelimiter start="%[qwi]{" end="}" skip="\\\\\|\\}" fold contains=rubyNestedCurlyBraces,rubyDelimEscape
a5352e73dc00 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2225
diff changeset
144 syn region rubyString matchgroup=rubyStringDelimiter start="%[qwi]<" end=">" skip="\\\\\|\\>" fold contains=rubyNestedAngleBrackets,rubyDelimEscape
a5352e73dc00 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2225
diff changeset
145 syn region rubyString matchgroup=rubyStringDelimiter start="%[qwi]\[" end="\]" skip="\\\\\|\\\]" fold contains=rubyNestedSquareBrackets,rubyDelimEscape
a5352e73dc00 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2225
diff changeset
146 syn region rubyString matchgroup=rubyStringDelimiter start="%[qwi](" end=")" skip="\\\\\|\\)" fold contains=rubyNestedParentheses,rubyDelimEscape
a5352e73dc00 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2225
diff changeset
147 syn region rubyString matchgroup=rubyStringDelimiter start="%q " end=" " skip="\\\\\|\\)" fold
a5352e73dc00 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2225
diff changeset
148 syn region rubySymbol matchgroup=rubySymbolDelimiter start="%s\z([~`!@#$%^&*_\-+=|\:;"',.? /]\)" end="\z1" skip="\\\\\|\\\z1" fold
a5352e73dc00 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2225
diff changeset
149 syn region rubySymbol matchgroup=rubySymbolDelimiter start="%s{" end="}" skip="\\\\\|\\}" fold contains=rubyNestedCurlyBraces,rubyDelimEscape
a5352e73dc00 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2225
diff changeset
150 syn region rubySymbol matchgroup=rubySymbolDelimiter start="%s<" end=">" skip="\\\\\|\\>" fold contains=rubyNestedAngleBrackets,rubyDelimEscape
a5352e73dc00 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2225
diff changeset
151 syn region rubySymbol matchgroup=rubySymbolDelimiter start="%s\[" end="\]" skip="\\\\\|\\\]" fold contains=rubyNestedSquareBrackets,rubyDelimEscape
a5352e73dc00 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2225
diff changeset
152 syn region rubySymbol matchgroup=rubySymbolDelimiter start="%s(" end=")" skip="\\\\\|\\)" fold contains=rubyNestedParentheses,rubyDelimEscape
529
0d6092bb72e6 updated for version 7.0148
vimboss
parents: 36
diff changeset
153
0d6092bb72e6 updated for version 7.0148
vimboss
parents: 36
diff changeset
154 " Generalized Double Quoted String and Array of Strings and Shell Command Output
0d6092bb72e6 updated for version 7.0148
vimboss
parents: 36
diff changeset
155 " Note: %= is not matched here as the beginning of a double quoted string
0d6092bb72e6 updated for version 7.0148
vimboss
parents: 36
diff changeset
156 syn region rubyString matchgroup=rubyStringDelimiter start="%\z([~`!@#$%^&*_\-+|\:;"',.?/]\)" end="\z1" skip="\\\\\|\\\z1" contains=@rubyStringSpecial fold
4869
a5352e73dc00 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2225
diff changeset
157 syn region rubyString matchgroup=rubyStringDelimiter start="%[QWIx]\z([~`!@#$%^&*_\-+=|\:;"',.?/]\)" end="\z1" skip="\\\\\|\\\z1" contains=@rubyStringSpecial fold
a5352e73dc00 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2225
diff changeset
158 syn region rubyString matchgroup=rubyStringDelimiter start="%[QWIx]\={" end="}" skip="\\\\\|\\}" contains=@rubyStringSpecial,rubyNestedCurlyBraces,rubyDelimEscape fold
a5352e73dc00 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2225
diff changeset
159 syn region rubyString matchgroup=rubyStringDelimiter start="%[QWIx]\=<" end=">" skip="\\\\\|\\>" contains=@rubyStringSpecial,rubyNestedAngleBrackets,rubyDelimEscape fold
a5352e73dc00 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2225
diff changeset
160 syn region rubyString matchgroup=rubyStringDelimiter start="%[QWIx]\=\[" end="\]" skip="\\\\\|\\\]" contains=@rubyStringSpecial,rubyNestedSquareBrackets,rubyDelimEscape fold
a5352e73dc00 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2225
diff changeset
161 syn region rubyString matchgroup=rubyStringDelimiter start="%[QWIx]\=(" end=")" skip="\\\\\|\\)" contains=@rubyStringSpecial,rubyNestedParentheses,rubyDelimEscape fold
a5352e73dc00 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2225
diff changeset
162 syn region rubyString matchgroup=rubyStringDelimiter start="%[Qx] " end=" " skip="\\\\\|\\)" contains=@rubyStringSpecial fold
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
163
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
164 " Here Document
4869
a5352e73dc00 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2225
diff changeset
165 syn region rubyHeredocStart matchgroup=rubyStringDelimiter start=+\%(\%(class\s*\|\%([]})"'.]\|::\)\)\_s*\|\w\)\@<!<<-\=\zs\%(\%(\h\|[^\x00-\x7F]\)\%(\w\|[^\x00-\x7F]\)*\)+ end=+$+ oneline contains=ALLBUT,@rubyNotTop
1668
0b796e045c42 updated for version 7.2b-000
vimboss
parents: 1619
diff changeset
166 syn region rubyHeredocStart matchgroup=rubyStringDelimiter start=+\%(\%(class\s*\|\%([]})"'.]\|::\)\)\_s*\|\w\)\@<!<<-\=\zs"\%([^"]*\)"+ end=+$+ oneline contains=ALLBUT,@rubyNotTop
0b796e045c42 updated for version 7.2b-000
vimboss
parents: 1619
diff changeset
167 syn region rubyHeredocStart matchgroup=rubyStringDelimiter start=+\%(\%(class\s*\|\%([]})"'.]\|::\)\)\_s*\|\w\)\@<!<<-\=\zs'\%([^']*\)'+ end=+$+ oneline contains=ALLBUT,@rubyNotTop
0b796e045c42 updated for version 7.2b-000
vimboss
parents: 1619
diff changeset
168 syn region rubyHeredocStart matchgroup=rubyStringDelimiter start=+\%(\%(class\s*\|\%([]})"'.]\|::\)\)\_s*\|\w\)\@<!<<-\=\zs`\%([^`]*\)`+ end=+$+ oneline contains=ALLBUT,@rubyNotTop
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
169
4869
a5352e73dc00 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2225
diff changeset
170 syn region rubyString start=+\%(\%(class\|::\)\_s*\|\%([]})"'.]\)\s\|\w\)\@<!<<\z(\%(\h\|[^\x00-\x7F]\)\%(\w\|[^\x00-\x7F]\)*\)\ze\%(.*<<-\=['`"]\=\h\)\@!+hs=s+2 matchgroup=rubyStringDelimiter end=+^\z1$+ contains=rubyHeredocStart,rubyHeredoc,@rubyStringSpecial fold keepend
a5352e73dc00 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2225
diff changeset
171 syn region rubyString start=+\%(\%(class\|::\)\_s*\|\%([]})"'.]\)\s\|\w\)\@<!<<"\z([^"]*\)"\ze\%(.*<<-\=['`"]\=\h\)\@!+hs=s+2 matchgroup=rubyStringDelimiter end=+^\z1$+ contains=rubyHeredocStart,rubyHeredoc,@rubyStringSpecial fold keepend
a5352e73dc00 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2225
diff changeset
172 syn region rubyString start=+\%(\%(class\|::\)\_s*\|\%([]})"'.]\)\s\|\w\)\@<!<<'\z([^']*\)'\ze\%(.*<<-\=['`"]\=\h\)\@!+hs=s+2 matchgroup=rubyStringDelimiter end=+^\z1$+ contains=rubyHeredocStart,rubyHeredoc fold keepend
a5352e73dc00 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2225
diff changeset
173 syn region rubyString start=+\%(\%(class\|::\)\_s*\|\%([]})"'.]\)\s\|\w\)\@<!<<`\z([^`]*\)`\ze\%(.*<<-\=['`"]\=\h\)\@!+hs=s+2 matchgroup=rubyStringDelimiter end=+^\z1$+ contains=rubyHeredocStart,rubyHeredoc,@rubyStringSpecial fold keepend
529
0d6092bb72e6 updated for version 7.0148
vimboss
parents: 36
diff changeset
174
4869
a5352e73dc00 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2225
diff changeset
175 syn region rubyString start=+\%(\%(class\|::\)\_s*\|\%([]}).]\)\s\|\w\)\@<!<<-\z(\%(\h\|[^\x00-\x7F]\)\%(\w\|[^\x00-\x7F]\)*\)\ze\%(.*<<-\=['`"]\=\h\)\@!+hs=s+3 matchgroup=rubyStringDelimiter end=+^\s*\zs\z1$+ contains=rubyHeredocStart,@rubyStringSpecial fold keepend
a5352e73dc00 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2225
diff changeset
176 syn region rubyString start=+\%(\%(class\|::\)\_s*\|\%([]}).]\)\s\|\w\)\@<!<<-"\z([^"]*\)"\ze\%(.*<<-\=['`"]\=\h\)\@!+hs=s+3 matchgroup=rubyStringDelimiter end=+^\s*\zs\z1$+ contains=rubyHeredocStart,@rubyStringSpecial fold keepend
a5352e73dc00 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2225
diff changeset
177 syn region rubyString start=+\%(\%(class\|::\)\_s*\|\%([]}).]\)\s\|\w\)\@<!<<-'\z([^']*\)'\ze\%(.*<<-\=['`"]\=\h\)\@!+hs=s+3 matchgroup=rubyStringDelimiter end=+^\s*\zs\z1$+ contains=rubyHeredocStart fold keepend
a5352e73dc00 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2225
diff changeset
178 syn region rubyString start=+\%(\%(class\|::\)\_s*\|\%([]}).]\)\s\|\w\)\@<!<<-`\z([^`]*\)`\ze\%(.*<<-\=['`"]\=\h\)\@!+hs=s+3 matchgroup=rubyStringDelimiter end=+^\s*\zs\z1$+ contains=rubyHeredocStart,@rubyStringSpecial fold keepend
529
0d6092bb72e6 updated for version 7.0148
vimboss
parents: 36
diff changeset
179
0d6092bb72e6 updated for version 7.0148
vimboss
parents: 36
diff changeset
180 if exists('main_syntax') && main_syntax == 'eruby'
548
f43150a669dc updated for version 7.0155
vimboss
parents: 532
diff changeset
181 let b:ruby_no_expensive = 1
529
0d6092bb72e6 updated for version 7.0148
vimboss
parents: 36
diff changeset
182 end
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
183
2225
dd5c1983e355 Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
184 syn match rubyAliasDeclaration "[^[:space:];#.()]\+" contained contains=rubySymbol,rubyGlobalVariable,rubyPredefinedVariable nextgroup=rubyAliasDeclaration2 skipwhite
dd5c1983e355 Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
185 syn match rubyAliasDeclaration2 "[^[:space:];#.()]\+" contained contains=rubySymbol,rubyGlobalVariable,rubyPredefinedVariable
dd5c1983e355 Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
186 syn match rubyMethodDeclaration "[^[:space:];#(]\+" contained contains=rubyConstant,rubyBoolean,rubyPseudoVariable,rubyInstanceVariable,rubyClassVariable,rubyGlobalVariable
dd5c1983e355 Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
187 syn match rubyClassDeclaration "[^[:space:];#<]\+" contained contains=rubyConstant,rubyOperator
dd5c1983e355 Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
188 syn match rubyModuleDeclaration "[^[:space:];#<]\+" contained contains=rubyConstant,rubyOperator
dd5c1983e355 Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
189 syn match rubyFunction "\<[_[:alpha:]][_[:alnum:]]*[?!=]\=[[:alnum:]_.:?!=]\@!" contained containedin=rubyMethodDeclaration
1121
e63691e7c504 updated for version 7.1a
vimboss
parents: 831
diff changeset
190 syn match rubyFunction "\%(\s\|^\)\@<=[_[:alpha:]][_[:alnum:]]*[?!=]\=\%(\s\|$\)\@=" contained containedin=rubyAliasDeclaration,rubyAliasDeclaration2
4869
a5352e73dc00 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2225
diff changeset
191 syn match rubyFunction "\%([[:space:].]\|^\)\@<=\%(\[\]=\=\|\*\*\|[+-]@\=\|[*/%|&^~]\|<<\|>>\|[<>]=\=\|<=>\|===\|[=!]=\|[=!]\~\|!\|`\)\%([[:space:];#(]\|$\)\@=" contained containedin=rubyAliasDeclaration,rubyAliasDeclaration2,rubyMethodDeclaration
1190
4e90dc161511 updated for version 7.1b
vimboss
parents: 1121
diff changeset
192
2225
dd5c1983e355 Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
193 syn cluster rubyDeclaration contains=rubyAliasDeclaration,rubyAliasDeclaration2,rubyMethodDeclaration,rubyModuleDeclaration,rubyClassDeclaration,rubyFunction,rubyBlockParameter
dd5c1983e355 Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
194
dd5c1983e355 Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
195 " Keywords
dd5c1983e355 Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
196 " Note: the following keywords have already been defined:
dd5c1983e355 Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
197 " begin case class def do end for if module unless until while
dd5c1983e355 Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
198 syn match rubyControl "\<\%(and\|break\|in\|next\|not\|or\|redo\|rescue\|retry\|return\)\>[?!]\@!"
dd5c1983e355 Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
199 syn match rubyOperator "\<defined?" display
dd5c1983e355 Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
200 syn match rubyKeyword "\<\%(super\|yield\)\>[?!]\@!"
dd5c1983e355 Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
201 syn match rubyBoolean "\<\%(true\|false\)\>[?!]\@!"
4869
a5352e73dc00 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2225
diff changeset
202 syn match rubyPseudoVariable "\<\%(nil\|self\|__ENCODING__\|__FILE__\|__LINE__\|__callee__\|__method__\)\>[?!]\@!" " TODO: reorganise
2225
dd5c1983e355 Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
203 syn match rubyBeginEnd "\<\%(BEGIN\|END\)\>[?!]\@!"
1668
0b796e045c42 updated for version 7.2b-000
vimboss
parents: 1619
diff changeset
204
1190
4e90dc161511 updated for version 7.1b
vimboss
parents: 1121
diff changeset
205 " Expensive Mode - match 'end' with the appropriate opening keyword for syntax
4e90dc161511 updated for version 7.1b
vimboss
parents: 1121
diff changeset
206 " based folding and special highlighting of module/class/method definitions
548
f43150a669dc updated for version 7.0155
vimboss
parents: 532
diff changeset
207 if !exists("b:ruby_no_expensive") && !exists("ruby_no_expensive")
2225
dd5c1983e355 Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
208 syn match rubyDefine "\<alias\>" nextgroup=rubyAliasDeclaration skipwhite skipnl
dd5c1983e355 Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
209 syn match rubyDefine "\<def\>" nextgroup=rubyMethodDeclaration skipwhite skipnl
dd5c1983e355 Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
210 syn match rubyDefine "\<undef\>" nextgroup=rubyFunction skipwhite skipnl
dd5c1983e355 Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
211 syn match rubyClass "\<class\>" nextgroup=rubyClassDeclaration skipwhite skipnl
dd5c1983e355 Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
212 syn match rubyModule "\<module\>" nextgroup=rubyModuleDeclaration skipwhite skipnl
dd5c1983e355 Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
213
dd5c1983e355 Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
214 syn region rubyMethodBlock start="\<def\>" matchgroup=rubyDefine end="\%(\<def\_s\+\)\@<!\<end\>" contains=ALLBUT,@rubyNotTop fold
dd5c1983e355 Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
215 syn region rubyBlock start="\<class\>" matchgroup=rubyClass end="\<end\>" contains=ALLBUT,@rubyNotTop fold
dd5c1983e355 Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
216 syn region rubyBlock start="\<module\>" matchgroup=rubyModule end="\<end\>" contains=ALLBUT,@rubyNotTop fold
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
217
529
0d6092bb72e6 updated for version 7.0148
vimboss
parents: 36
diff changeset
218 " modifiers
2225
dd5c1983e355 Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
219 syn match rubyConditionalModifier "\<\%(if\|unless\)\>" display
dd5c1983e355 Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
220 syn match rubyRepeatModifier "\<\%(while\|until\)\>" display
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
221
2225
dd5c1983e355 Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
222 syn region rubyDoBlock matchgroup=rubyControl start="\<do\>" end="\<end\>" contains=ALLBUT,@rubyNotTop fold
1190
4e90dc161511 updated for version 7.1b
vimboss
parents: 1121
diff changeset
223 " curly bracket block or hash literal
4869
a5352e73dc00 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2225
diff changeset
224 syn region rubyCurlyBlock matchgroup=rubyCurlyBlockDelimiter start="{" end="}" contains=ALLBUT,@rubyNotTop fold
a5352e73dc00 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2225
diff changeset
225 syn region rubyArrayLiteral matchgroup=rubyArrayDelimiter start="\%(\w\|[\]})]\)\@<!\[" end="]" contains=ALLBUT,@rubyNotTop fold
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
226
1190
4e90dc161511 updated for version 7.1b
vimboss
parents: 1121
diff changeset
227 " statements without 'do'
1668
0b796e045c42 updated for version 7.2b-000
vimboss
parents: 1619
diff changeset
228 syn region rubyBlockExpression matchgroup=rubyControl start="\<begin\>" end="\<end\>" contains=ALLBUT,@rubyNotTop fold
0b796e045c42 updated for version 7.2b-000
vimboss
parents: 1619
diff changeset
229 syn region rubyCaseExpression matchgroup=rubyConditional start="\<case\>" end="\<end\>" contains=ALLBUT,@rubyNotTop fold
4869
a5352e73dc00 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2225
diff changeset
230 syn region rubyConditionalExpression matchgroup=rubyConditional start="\%(\%(^\|\.\.\.\=\|[{:,;([<>~\*/%&^|+=-]\|\%(\<[_[:lower:]][_[:alnum:]]*\)\@<![?!]\)\s*\)\@<=\%(if\|unless\)\>" end="\%(\%(\%(\.\@<!\.\)\|::\)\s*\)\@<!\<end\>" contains=ALLBUT,@rubyNotTop fold
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
231
2225
dd5c1983e355 Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
232 syn match rubyConditional "\<\%(then\|else\|when\)\>[?!]\@!" contained containedin=rubyCaseExpression
1668
0b796e045c42 updated for version 7.2b-000
vimboss
parents: 1619
diff changeset
233 syn match rubyConditional "\<\%(then\|else\|elsif\)\>[?!]\@!" contained containedin=rubyConditionalExpression
1190
4e90dc161511 updated for version 7.1b
vimboss
parents: 1121
diff changeset
234
2225
dd5c1983e355 Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
235 syn match rubyExceptional "\<\%(\%(\%(;\|^\)\s*\)\@<=rescue\|else\|ensure\)\>[?!]\@!" contained containedin=rubyBlockExpression
dd5c1983e355 Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
236 syn match rubyMethodExceptional "\<\%(\%(\%(;\|^\)\s*\)\@<=rescue\|else\|ensure\)\>[?!]\@!" contained containedin=rubyMethodBlock
dd5c1983e355 Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
237
1190
4e90dc161511 updated for version 7.1b
vimboss
parents: 1121
diff changeset
238 " statements with optional 'do'
1668
0b796e045c42 updated for version 7.2b-000
vimboss
parents: 1619
diff changeset
239 syn region rubyOptionalDoLine matchgroup=rubyRepeat start="\<for\>[?!]\@!" start="\%(\%(^\|\.\.\.\=\|[{:,;([<>~\*/%&^|+-]\|\%(\<[_[:lower:]][_[:alnum:]]*\)\@<![!=?]\)\s*\)\@<=\<\%(until\|while\)\>" matchgroup=rubyOptionalDo end="\%(\<do\>\)" end="\ze\%(;\|$\)" oneline contains=ALLBUT,@rubyNotTop
0b796e045c42 updated for version 7.2b-000
vimboss
parents: 1619
diff changeset
240 syn region rubyRepeatExpression start="\<for\>[?!]\@!" start="\%(\%(^\|\.\.\.\=\|[{:,;([<>~\*/%&^|+-]\|\%(\<[_[:lower:]][_[:alnum:]]*\)\@<![!=?]\)\s*\)\@<=\<\%(until\|while\)\>" matchgroup=rubyRepeat end="\<end\>" contains=ALLBUT,@rubyNotTop nextgroup=rubyOptionalDoLine fold
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
241
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
242 if !exists("ruby_minlines")
4869
a5352e73dc00 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2225
diff changeset
243 let ruby_minlines = 500
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
244 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
245 exec "syn sync minlines=" . ruby_minlines
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
246
529
0d6092bb72e6 updated for version 7.0148
vimboss
parents: 36
diff changeset
247 else
2225
dd5c1983e355 Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
248 syn match rubyControl "\<def\>[?!]\@!" nextgroup=rubyMethodDeclaration skipwhite skipnl
dd5c1983e355 Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
249 syn match rubyControl "\<class\>[?!]\@!" nextgroup=rubyClassDeclaration skipwhite skipnl
dd5c1983e355 Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
250 syn match rubyControl "\<module\>[?!]\@!" nextgroup=rubyModuleDeclaration skipwhite skipnl
dd5c1983e355 Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
251 syn match rubyControl "\<\%(case\|begin\|do\|for\|if\|unless\|while\|until\|else\|elsif\|ensure\|then\|when\|end\)\>[?!]\@!"
dd5c1983e355 Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
252 syn match rubyKeyword "\<\%(alias\|undef\)\>[?!]\@!"
529
0d6092bb72e6 updated for version 7.0148
vimboss
parents: 36
diff changeset
253 endif
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
254
529
0d6092bb72e6 updated for version 7.0148
vimboss
parents: 36
diff changeset
255 " Special Methods
0d6092bb72e6 updated for version 7.0148
vimboss
parents: 36
diff changeset
256 if !exists("ruby_no_special_methods")
4869
a5352e73dc00 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2225
diff changeset
257 syn keyword rubyAccess public protected private public_class_method private_class_method public_constant private_constant module_function
1668
0b796e045c42 updated for version 7.2b-000
vimboss
parents: 1619
diff changeset
258 " attr is a common variable name
0b796e045c42 updated for version 7.2b-000
vimboss
parents: 1619
diff changeset
259 syn match rubyAttribute "\%(\%(^\|;\)\s*\)\@<=attr\>\(\s*[.=]\)\@!"
0b796e045c42 updated for version 7.2b-000
vimboss
parents: 1619
diff changeset
260 syn keyword rubyAttribute attr_accessor attr_reader attr_writer
0b796e045c42 updated for version 7.2b-000
vimboss
parents: 1619
diff changeset
261 syn match rubyControl "\<\%(exit!\|\%(abort\|at_exit\|exit\|fork\|loop\|trap\)\>[?!]\@!\)"
548
f43150a669dc updated for version 7.0155
vimboss
parents: 532
diff changeset
262 syn keyword rubyEval eval class_eval instance_eval module_eval
529
0d6092bb72e6 updated for version 7.0148
vimboss
parents: 36
diff changeset
263 syn keyword rubyException raise fail catch throw
1668
0b796e045c42 updated for version 7.2b-000
vimboss
parents: 1619
diff changeset
264 " false positive with 'include?'
0b796e045c42 updated for version 7.2b-000
vimboss
parents: 1619
diff changeset
265 syn match rubyInclude "\<include\>[?!]\@!"
4869
a5352e73dc00 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2225
diff changeset
266 syn keyword rubyInclude autoload extend load prepend require require_relative
529
0d6092bb72e6 updated for version 7.0148
vimboss
parents: 36
diff changeset
267 syn keyword rubyKeyword callcc caller lambda proc
0d6092bb72e6 updated for version 7.0148
vimboss
parents: 36
diff changeset
268 endif
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
269
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
270 " Comments and Documentation
2225
dd5c1983e355 Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
271 syn match rubySharpBang "\%^#!.*" display
4869
a5352e73dc00 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2225
diff changeset
272 syn keyword rubyTodo FIXME NOTE TODO OPTIMIZE XXX todo contained
2225
dd5c1983e355 Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
273 syn match rubyComment "#.*" contains=rubySharpBang,rubySpaceError,rubyTodo,@Spell
1121
e63691e7c504 updated for version 7.1a
vimboss
parents: 831
diff changeset
274 if !exists("ruby_no_comment_fold")
e63691e7c504 updated for version 7.1a
vimboss
parents: 831
diff changeset
275 syn region rubyMultilineComment start="\%(\%(^\s*#.*\n\)\@<!\%(^\s*#.*\n\)\)\%(\(^\s*#.*\n\)\{1,}\)\@=" end="\%(^\s*#.*\n\)\@<=\%(^\s*#.*\n\)\%(^\s*#\)\@!" contains=rubyComment transparent fold keepend
4869
a5352e73dc00 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2225
diff changeset
276 syn region rubyDocumentation start="^=begin\ze\%(\s.*\)\=$" end="^=end\%(\s.*\)\=$" contains=rubySpaceError,rubyTodo,@Spell fold
1121
e63691e7c504 updated for version 7.1a
vimboss
parents: 831
diff changeset
277 else
e63691e7c504 updated for version 7.1a
vimboss
parents: 831
diff changeset
278 syn region rubyDocumentation start="^=begin\s*$" end="^=end\s*$" contains=rubySpaceError,rubyTodo,@Spell
e63691e7c504 updated for version 7.1a
vimboss
parents: 831
diff changeset
279 endif
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
280
529
0d6092bb72e6 updated for version 7.0148
vimboss
parents: 36
diff changeset
281 " Note: this is a hack to prevent 'keywords' being highlighted as such when called as methods with an explicit receiver
2225
dd5c1983e355 Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
282 syn match rubyKeywordAsMethod "\%(\%(\.\@<!\.\)\|::\)\_s*\%(alias\|and\|begin\|break\|case\|class\|def\|defined\|do\|else\)\>" transparent contains=NONE
dd5c1983e355 Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
283 syn match rubyKeywordAsMethod "\%(\%(\.\@<!\.\)\|::\)\_s*\%(elsif\|end\|ensure\|false\|for\|if\|in\|module\|next\|nil\)\>" transparent contains=NONE
dd5c1983e355 Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
284 syn match rubyKeywordAsMethod "\%(\%(\.\@<!\.\)\|::\)\_s*\%(not\|or\|redo\|rescue\|retry\|return\|self\|super\|then\|true\)\>" transparent contains=NONE
dd5c1983e355 Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
285 syn match rubyKeywordAsMethod "\%(\%(\.\@<!\.\)\|::\)\_s*\%(undef\|unless\|until\|when\|while\|yield\|BEGIN\|END\|__FILE__\|__LINE__\)\>" transparent contains=NONE
529
0d6092bb72e6 updated for version 7.0148
vimboss
parents: 36
diff changeset
286
2225
dd5c1983e355 Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
287 syn match rubyKeywordAsMethod "\<\%(alias\|begin\|case\|class\|def\|do\|end\)[?!]" transparent contains=NONE
dd5c1983e355 Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
288 syn match rubyKeywordAsMethod "\<\%(if\|module\|undef\|unless\|until\|while\)[?!]" transparent contains=NONE
1668
0b796e045c42 updated for version 7.2b-000
vimboss
parents: 1619
diff changeset
289
4869
a5352e73dc00 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2225
diff changeset
290 syn match rubyKeywordAsMethod "\%(\%(\.\@<!\.\)\|::\)\_s*\%(abort\|at_exit\|attr\|attr_accessor\|attr_reader\)\>" transparent contains=NONE
a5352e73dc00 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2225
diff changeset
291 syn match rubyKeywordAsMethod "\%(\%(\.\@<!\.\)\|::\)\_s*\%(attr_writer\|autoload\|callcc\|catch\|caller\)\>" transparent contains=NONE
a5352e73dc00 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2225
diff changeset
292 syn match rubyKeywordAsMethod "\%(\%(\.\@<!\.\)\|::\)\_s*\%(eval\|class_eval\|instance_eval\|module_eval\|exit\)\>" transparent contains=NONE
a5352e73dc00 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2225
diff changeset
293 syn match rubyKeywordAsMethod "\%(\%(\.\@<!\.\)\|::\)\_s*\%(extend\|fail\|fork\|include\|lambda\)\>" transparent contains=NONE
a5352e73dc00 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2225
diff changeset
294 syn match rubyKeywordAsMethod "\%(\%(\.\@<!\.\)\|::\)\_s*\%(load\|loop\|prepend\|private\|proc\|protected\)\>" transparent contains=NONE
a5352e73dc00 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2225
diff changeset
295 syn match rubyKeywordAsMethod "\%(\%(\.\@<!\.\)\|::\)\_s*\%(public\|require\|require_relative\|raise\|throw\|trap\)\>" transparent contains=NONE
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
296
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
297 " __END__ Directive
529
0d6092bb72e6 updated for version 7.0148
vimboss
parents: 36
diff changeset
298 syn region rubyData matchgroup=rubyDataDirective start="^__END__$" end="\%$" fold
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
299
1190
4e90dc161511 updated for version 7.1b
vimboss
parents: 1121
diff changeset
300 hi def link rubyClass rubyDefine
4e90dc161511 updated for version 7.1b
vimboss
parents: 1121
diff changeset
301 hi def link rubyModule rubyDefine
2225
dd5c1983e355 Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
302 hi def link rubyMethodExceptional rubyDefine
1190
4e90dc161511 updated for version 7.1b
vimboss
parents: 1121
diff changeset
303 hi def link rubyDefine Define
4e90dc161511 updated for version 7.1b
vimboss
parents: 1121
diff changeset
304 hi def link rubyFunction Function
4e90dc161511 updated for version 7.1b
vimboss
parents: 1121
diff changeset
305 hi def link rubyConditional Conditional
4e90dc161511 updated for version 7.1b
vimboss
parents: 1121
diff changeset
306 hi def link rubyConditionalModifier rubyConditional
2225
dd5c1983e355 Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
307 hi def link rubyExceptional rubyConditional
1190
4e90dc161511 updated for version 7.1b
vimboss
parents: 1121
diff changeset
308 hi def link rubyRepeat Repeat
4e90dc161511 updated for version 7.1b
vimboss
parents: 1121
diff changeset
309 hi def link rubyRepeatModifier rubyRepeat
4e90dc161511 updated for version 7.1b
vimboss
parents: 1121
diff changeset
310 hi def link rubyOptionalDo rubyRepeat
4e90dc161511 updated for version 7.1b
vimboss
parents: 1121
diff changeset
311 hi def link rubyControl Statement
4e90dc161511 updated for version 7.1b
vimboss
parents: 1121
diff changeset
312 hi def link rubyInclude Include
4e90dc161511 updated for version 7.1b
vimboss
parents: 1121
diff changeset
313 hi def link rubyInteger Number
4e90dc161511 updated for version 7.1b
vimboss
parents: 1121
diff changeset
314 hi def link rubyASCIICode Character
4e90dc161511 updated for version 7.1b
vimboss
parents: 1121
diff changeset
315 hi def link rubyFloat Float
4e90dc161511 updated for version 7.1b
vimboss
parents: 1121
diff changeset
316 hi def link rubyBoolean Boolean
4e90dc161511 updated for version 7.1b
vimboss
parents: 1121
diff changeset
317 hi def link rubyException Exception
4e90dc161511 updated for version 7.1b
vimboss
parents: 1121
diff changeset
318 if !exists("ruby_no_identifiers")
4e90dc161511 updated for version 7.1b
vimboss
parents: 1121
diff changeset
319 hi def link rubyIdentifier Identifier
4e90dc161511 updated for version 7.1b
vimboss
parents: 1121
diff changeset
320 else
4e90dc161511 updated for version 7.1b
vimboss
parents: 1121
diff changeset
321 hi def link rubyIdentifier NONE
4e90dc161511 updated for version 7.1b
vimboss
parents: 1121
diff changeset
322 endif
4e90dc161511 updated for version 7.1b
vimboss
parents: 1121
diff changeset
323 hi def link rubyClassVariable rubyIdentifier
4e90dc161511 updated for version 7.1b
vimboss
parents: 1121
diff changeset
324 hi def link rubyConstant Type
4e90dc161511 updated for version 7.1b
vimboss
parents: 1121
diff changeset
325 hi def link rubyGlobalVariable rubyIdentifier
4e90dc161511 updated for version 7.1b
vimboss
parents: 1121
diff changeset
326 hi def link rubyBlockParameter rubyIdentifier
4e90dc161511 updated for version 7.1b
vimboss
parents: 1121
diff changeset
327 hi def link rubyInstanceVariable rubyIdentifier
4e90dc161511 updated for version 7.1b
vimboss
parents: 1121
diff changeset
328 hi def link rubyPredefinedIdentifier rubyIdentifier
4e90dc161511 updated for version 7.1b
vimboss
parents: 1121
diff changeset
329 hi def link rubyPredefinedConstant rubyPredefinedIdentifier
4e90dc161511 updated for version 7.1b
vimboss
parents: 1121
diff changeset
330 hi def link rubyPredefinedVariable rubyPredefinedIdentifier
4e90dc161511 updated for version 7.1b
vimboss
parents: 1121
diff changeset
331 hi def link rubySymbol Constant
4e90dc161511 updated for version 7.1b
vimboss
parents: 1121
diff changeset
332 hi def link rubyKeyword Keyword
4e90dc161511 updated for version 7.1b
vimboss
parents: 1121
diff changeset
333 hi def link rubyOperator Operator
4e90dc161511 updated for version 7.1b
vimboss
parents: 1121
diff changeset
334 hi def link rubyBeginEnd Statement
4e90dc161511 updated for version 7.1b
vimboss
parents: 1121
diff changeset
335 hi def link rubyAccess Statement
4e90dc161511 updated for version 7.1b
vimboss
parents: 1121
diff changeset
336 hi def link rubyAttribute Statement
4e90dc161511 updated for version 7.1b
vimboss
parents: 1121
diff changeset
337 hi def link rubyEval Statement
4e90dc161511 updated for version 7.1b
vimboss
parents: 1121
diff changeset
338 hi def link rubyPseudoVariable Constant
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
339
1190
4e90dc161511 updated for version 7.1b
vimboss
parents: 1121
diff changeset
340 hi def link rubyComment Comment
4e90dc161511 updated for version 7.1b
vimboss
parents: 1121
diff changeset
341 hi def link rubyData Comment
4e90dc161511 updated for version 7.1b
vimboss
parents: 1121
diff changeset
342 hi def link rubyDataDirective Delimiter
4e90dc161511 updated for version 7.1b
vimboss
parents: 1121
diff changeset
343 hi def link rubyDocumentation Comment
1668
0b796e045c42 updated for version 7.2b-000
vimboss
parents: 1619
diff changeset
344 hi def link rubyTodo Todo
0b796e045c42 updated for version 7.2b-000
vimboss
parents: 1619
diff changeset
345
2225
dd5c1983e355 Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
346 hi def link rubyQuoteEscape rubyStringEscape
1668
0b796e045c42 updated for version 7.2b-000
vimboss
parents: 1619
diff changeset
347 hi def link rubyStringEscape Special
1190
4e90dc161511 updated for version 7.1b
vimboss
parents: 1121
diff changeset
348 hi def link rubyInterpolationDelimiter Delimiter
4e90dc161511 updated for version 7.1b
vimboss
parents: 1121
diff changeset
349 hi def link rubyNoInterpolation rubyString
4e90dc161511 updated for version 7.1b
vimboss
parents: 1121
diff changeset
350 hi def link rubySharpBang PreProc
4e90dc161511 updated for version 7.1b
vimboss
parents: 1121
diff changeset
351 hi def link rubyRegexpDelimiter rubyStringDelimiter
1668
0b796e045c42 updated for version 7.2b-000
vimboss
parents: 1619
diff changeset
352 hi def link rubySymbolDelimiter rubyStringDelimiter
1190
4e90dc161511 updated for version 7.1b
vimboss
parents: 1121
diff changeset
353 hi def link rubyStringDelimiter Delimiter
4869
a5352e73dc00 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2225
diff changeset
354 hi def link rubyHeredoc rubyString
1668
0b796e045c42 updated for version 7.2b-000
vimboss
parents: 1619
diff changeset
355 hi def link rubyString String
0b796e045c42 updated for version 7.2b-000
vimboss
parents: 1619
diff changeset
356 hi def link rubyRegexpEscape rubyRegexpSpecial
0b796e045c42 updated for version 7.2b-000
vimboss
parents: 1619
diff changeset
357 hi def link rubyRegexpQuantifier rubyRegexpSpecial
0b796e045c42 updated for version 7.2b-000
vimboss
parents: 1619
diff changeset
358 hi def link rubyRegexpAnchor rubyRegexpSpecial
0b796e045c42 updated for version 7.2b-000
vimboss
parents: 1619
diff changeset
359 hi def link rubyRegexpDot rubyRegexpCharClass
0b796e045c42 updated for version 7.2b-000
vimboss
parents: 1619
diff changeset
360 hi def link rubyRegexpCharClass rubyRegexpSpecial
0b796e045c42 updated for version 7.2b-000
vimboss
parents: 1619
diff changeset
361 hi def link rubyRegexpSpecial Special
0b796e045c42 updated for version 7.2b-000
vimboss
parents: 1619
diff changeset
362 hi def link rubyRegexpComment Comment
1190
4e90dc161511 updated for version 7.1b
vimboss
parents: 1121
diff changeset
363 hi def link rubyRegexp rubyString
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
364
1190
4e90dc161511 updated for version 7.1b
vimboss
parents: 1121
diff changeset
365 hi def link rubyInvalidVariable Error
4e90dc161511 updated for version 7.1b
vimboss
parents: 1121
diff changeset
366 hi def link rubyError Error
4e90dc161511 updated for version 7.1b
vimboss
parents: 1121
diff changeset
367 hi def link rubySpaceError rubyError
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
368
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
369 let b:current_syntax = "ruby"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
370
1668
0b796e045c42 updated for version 7.2b-000
vimboss
parents: 1619
diff changeset
371 " vim: nowrap sw=2 sts=2 ts=8 noet: