aboutsummaryrefslogtreecommitdiff
path: root/runtime/indent/ruby.vim
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2023-09-02 10:43:23 +0200
committerChristian Clason <c.clason@uni-graz.at>2023-09-02 11:08:29 +0200
commit61ccdb2db62481a38604426be530753ad2f9e7cb (patch)
treeb4d5b92646ff88833804744e006f0a3ce148aa62 /runtime/indent/ruby.vim
parentbc43575c521ab822efc8c25439dbad59aa119188 (diff)
downloadrneovim-61ccdb2db62481a38604426be530753ad2f9e7cb.tar.gz
rneovim-61ccdb2db62481a38604426be530753ad2f9e7cb.tar.bz2
rneovim-61ccdb2db62481a38604426be530753ad2f9e7cb.zip
vim-patch:da16a1b471aa
runtime(ruby): Update syntax, indent and ftplugin files While making changes to the ruby ftplugin, slightly change the exepath() conditional from patch 9.0.1833 and move it after the :cd invocation. closes: 12981 closes: 12994 https://github.com/vim/vim/commit/da16a1b471aa717f58909cc6531cb6dbbff14d22 Co-authored-by: Doug Kearns <dougkearns@gmail.com> Co-authored-by: Tim Pope <code@tpope.net>
Diffstat (limited to 'runtime/indent/ruby.vim')
-rw-r--r--runtime/indent/ruby.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/indent/ruby.vim b/runtime/indent/ruby.vim
index 6ce8529fd1..ea5a2a7494 100644
--- a/runtime/indent/ruby.vim
+++ b/runtime/indent/ruby.vim
@@ -4,7 +4,7 @@
" Previous Maintainer: Nikolai Weibull <now at bitwi.se>
" URL: https://github.com/vim-ruby/vim-ruby
" Release Coordinator: Doug Kearns <dougkearns@gmail.com>
-" Last Change: 2022 Mar 22
+" Last Change: 2022 Jun 30
" 0. Initialization {{{1
" =================
@@ -93,7 +93,7 @@ let s:ruby_indent_keywords =
\ '\<\%(if\|for\|while\|until\|case\|unless\|begin\):\@!\>'
" Def without an end clause: def method_call(...) = <expression>
-let s:ruby_endless_def = '\<def\s\+\k\+[!?]\=\%((.*)\|\s\)\s*='
+let s:ruby_endless_def = '\<def\s\+\%(\k\+\.\)\=\k\+[!?]\=\%((.*)\|\s\)\s*='
" Regex used for words that, at the start of a line, remove a level of indent.
let s:ruby_deindent_keywords =