FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Fix indent after a word ending in or/and · vim-ruby/vim-ruby@abfe860 · GitHub

Commit abfe860

Browse files
committed
Fix indent after a word ending in or/and
1 parent d1cd15d commit abfe860

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎indent/ruby.vim‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,12 +81,12 @@ let s:end_skip_expr = s:skip_expr .
8181
\ ' && getline(".") =~ "^\\s*\\<\\(while\\|until\\|for\\):\\@!\\>")'
8282

8383
" Regex that defines continuation lines, not including (, {, or [.
84-
let s:non_bracket_continuation_regex = '\%([\\.,:*/%+]\|and\|or\|\%(<%\)\@<![=-]\|\W[|&?]\|||\|&&\)\s*\%(#.*\)\=$'
84+
let s:non_bracket_continuation_regex = '\%([\\.,:*/%+]\|\<and\|\<or\|\%(<%\)\@<![=-]\|\W[|&?]\|||\|&&\)\s*\%(#.*\)\=$'
8585

8686
" Regex that defines continuation lines.
8787
" TODO: this needs to deal with if ...: and so on
8888
let s:continuation_regex =
89-
\ '\%([({[\\.,:*/%+]\|and\|or\|\%(<%\)\@<![=-]\|\W[|&?]\|||\|&&\)\s*\%(#.*\)\=$'
89+
\ '\%([({[\\.,:*/%+]\|\<and\|\<or\|\%(<%\)\@<![=-]\|\W[|&?]\|||\|&&\)\s*\%(#.*\)\=$'
9090

9191
" Regex that defines bracket continuations
9292
let s:bracket_continuation_regex = '\%([({[]\)\s*\%(#.*\)\=$'

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL