summaryrefslogtreecommitdiff
path: root/support
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2015-04-17 21:17:06 -0700
committerOri Bernstein <ori@eigenstate.org>2015-04-17 21:17:06 -0700
commit352a62d529461a0aabf4dd65686cebccc4d2b6c6 (patch)
treec39af042587d412da77326da72a609c107132bee /support
parent77a41acbc02d1a63dd8d1345e3cf1875befd7eaa (diff)
downloadmc-352a62d529461a0aabf4dd65686cebccc4d2b6c6.tar.gz
Clean up InComment a bit.
This removes a needless if.
Diffstat (limited to 'support')
-rw-r--r--support/vim/indent/myr.vim12
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