Commits

Takeshi NISHIDA committed 996112f

updated help

Comments (0)

Files changed (3)

                                     + 0文字以上のファイル名文字
         オムニ補完      ruby        ".", "::" or 単語を構成する文字以外 + ":"
         オムニ補完      python      "."
+        オムニ補完      xml         "<", "</" or ("<" + ">"以外の文字列 + " ")
         オムニ補完      html/xhtml  "<", "</" or ("<" + ">"以外の文字列 + " ")
         オムニ補完      css         (":", ";", "{", "^", "@", or "!")
                                     + 0個または1個のスペース
         Python オムニ補完の自動ポップアップを行うのに必要なカーソルの直前のキ
         ーワード文字数。負数ならこの補完は行いません。
 
+                                              *g:acp_behaviorXmlOmniLength*  >
+  let g:acp_behaviorXmlOmniLength = 0
+<
+        XML オムニ補完の自動ポップアップを行うのに必要なカーソルの直前のキーワ
+        ード文字数。負数ならこの補完は行いません。
+
                                              *g:acp_behaviorHtmlOmniLength*  >
   let g:acp_behaviorHtmlOmniLength = 0
 <
         値補完のための、CSS オムニ補完の自動ポップアップを行うのに必要なカーソ
         ルの直前のキーワード文字数。負数ならこの補完は行いません。
 
-                                              *g:acp_behaviorXmlOmniLength*  >
-  let g:acp_behaviorXmlOmniLength = 0
-<
-        XML オムニ補完の自動ポップアップを行うのに必要なカーソルの直前のキーワ
-        ード文字数。負数ならこの補完は行いません。
-
                                                            *g:acp_behavior*  >
   let g:acp_behavior = {}
 <
         Omni      ruby        ".", "::" or non-word character + ":"
                               (|+ruby| required.)
         Omni      python      "." (|+python| required.)
+        Omni      xml         "<", "</" or ("<" + non-">" characters + " ")
         Omni      html/xhtml  "<", "</" or ("<" + non-">" characters + " ")
         Omni      css         (":", ";", "{", "^", "@", or "!")
                               + 0 or 1 space
         attempt python omni-completion. If negative value, this completion
         will be never attempted.
 
+                                              *g:acp_behaviorXmlOmniLength*  >
+  let g:acp_behaviorXmlOmniLength = 0
+<
+        Length of keyword characters before a cursor, which are needed to
+        attempt XML omni-completion. If negative value, this completion will
+        be never attempted.
+
                                              *g:acp_behaviorHtmlOmniLength*  >
   let g:acp_behaviorHtmlOmniLength = 0
 <
         attempt CSS omni-completion for values. If negative value, this
         completion will be never attempted.
 
-                                              *g:acp_behaviorXmlOmniLength*  >
-  let g:acp_behaviorXmlOmniLength = 0
-<
-        Length of keyword characters before a cursor, which are needed to
-        attempt XML omni-completion. If negative value, this completion will
-        be never attempted.
-
                                                            *g:acp_behavior*  >
   let g:acp_behavior = {}
 <
         \   '*'      : [],
         \   'ruby'   : [],
         \   'python' : [],
+        \   'xml'    : [],
         \   'html'   : [],
         \   'xhtml'  : [],
         \   'css'    : [],
-        \   'xml'    : [],
         \ }
   "---------------------------------------------------------------------------
   if !empty(g:acp_behaviorUserDefinedFunction)
           \ })
   endif
   "---------------------------------------------------------------------------
+  if g:acp_behaviorXmlOmniLength >= 0
+    call add(behavs.xml, {
+          \   'command' : "\<C-x>\<C-o>",
+          \   'pattern' : printf('\(<\|<\/\|<[^>]\+ \|<[^>]\+=\"\)\k\{%d,}$',
+          \                      g:acp_behaviorXmlOmniLength),
+          \   'repeat'  : 0,
+          \ })
+  endif
+  "---------------------------------------------------------------------------
   if g:acp_behaviorHtmlOmniLength >= 0
     let behavHtml = {
           \   'command' : "\<C-x>\<C-o>",
           \ })
   endif
   "---------------------------------------------------------------------------
-  if g:acp_behaviorXmlOmniLength >= 0
-    call add(behavs.xml, {
-          \   'command' : "\<C-x>\<C-o>",
-          \   'pattern' : printf('\(<\|<\/\|<[^>]\+ \|<[^>]\+=\"\)\k\{%d,}$',
-          \                      g:acp_behaviorXmlOmniLength),
-          \   'repeat'  : 0,
-          \ })
-  endif
-  "---------------------------------------------------------------------------
   return behavs
 endfunction
 
 call s:defineOption('g:acp_behaviorRubyOmniMethodLength', 0)
 call s:defineOption('g:acp_behaviorRubyOmniSymbolLength', 1)
 call s:defineOption('g:acp_behaviorPythonOmniLength', 0)
+call s:defineOption('g:acp_behaviorXmlOmniLength', 0)
 call s:defineOption('g:acp_behaviorHtmlOmniLength', 0)
 call s:defineOption('g:acp_behaviorCssOmniPropertyLength', 1)
 call s:defineOption('g:acp_behaviorCssOmniValueLength', 0)
-call s:defineOption('g:acp_behaviorXmlOmniLength', 0)
 call s:defineOption('g:acp_behavior', {})
 "-----------------------------------------------------------------------------
 call extend(g:acp_behavior, s:makeDefaultBehavior(), 'keep')