]> git.madduck.net Git - etc/vim.git/commitdiff

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Do not skip/check concealed
authorDaniel Hahler <git@thequod.de>
Fri, 16 Nov 2018 09:32:45 +0000 (10:32 +0100)
committerDaniel Hahler <git@thequod.de>
Fri, 16 Nov 2018 09:32:45 +0000 (10:32 +0100)
indent/python.vim

index 96f12c2cbcfae381dd208e6e67be777e6e1aeecb..e3c2352135fc73aa9aabe0ee20417e1937cfdce6 100644 (file)
@@ -80,13 +80,17 @@ let s:skip_after_opening_paren = 'synIDattr(synID(line("."), col("."), 0), "name
             \ '=~? "\\vcomment|jedi\\S"'
 
 " Also ignore anything concealed.
-" Wrapper around synconcealed for older Vim (7.3.429, used on Travis CI).
-function! s:is_concealed(line, col)
-    let concealed = synconcealed(a:line, a:col)
-    return len(concealed) && concealed[0]
-endfunction
-if has('conceal')
-    let s:skip_special_chars .= '|| s:is_concealed(line("."), col("."))'
+" TODO: doc; likely only necessary with jedi-vim, where a better version is
+" planned (https://github.com/Vimjas/vim-python-pep8-indent/pull/98).
+if get(g:, 'python_pep8_indent_skip_concealed', 0)
+    " Wrapper around synconcealed for older Vim (7.3.429, used on Travis CI).
+    function! s:is_concealed(line, col)
+        let concealed = synconcealed(a:line, a:col)
+        return len(concealed) && concealed[0]
+    endfunction
+    if has('conceal')
+        let s:skip_special_chars .= '|| s:is_concealed(line("."), col("."))'
+    endif
 endif