diff options
author | Ori Bernstein <ori@eigenstate.org> | 2015-04-17 21:17:06 -0700 |
---|---|---|
committer | Ori Bernstein <ori@eigenstate.org> | 2015-04-17 21:17:06 -0700 |
commit | 352a62d529461a0aabf4dd65686cebccc4d2b6c6 (patch) | |
tree | c39af042587d412da77326da72a609c107132bee | |
parent | 77a41acbc02d1a63dd8d1345e3cf1875befd7eaa (diff) | |
download | mc-352a62d529461a0aabf4dd65686cebccc4d2b6c6.tar.gz |
Clean up InComment a bit.
This removes a needless if.
-rw-r--r-- | support/vim/indent/myr.vim | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/support/vim/indent/myr.vim b/support/vim/indent/myr.vim index b2cf671..d0de51a 100644 --- a/support/vim/indent/myr.vim +++ b/support/vim/indent/myr.vim @@ -8,13 +8,11 @@ endif function! InComment(lnum, col) let stk = synstack(a:lnum, a:col) - if len(stk) - for id in stk - if synIDattr(id, "name") == "myrComment" - return 1 - endif - endfor - endif + for id in stk + if synIDattr(id, "name") == "myrComment" + return 1 + endif + endfor return 0 endfunction |