From 1a3d7e58ab77a2007835039c38f79b926a649eb6 Mon Sep 17 00:00:00 2001 From: Alex Leferry 2 Date: Thu, 17 Mar 2016 11:48:27 +0100 Subject: [PATCH] =?UTF-8?q?Help=20Kakoune=20to=20better=20detect=20/?= =?UTF-8?q?=E2=80=A6/=20literals?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rc/base/ruby.kak | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rc/base/ruby.kak b/rc/base/ruby.kak index dd755529..b4f9e86a 100644 --- a/rc/base/ruby.kak +++ b/rc/base/ruby.kak @@ -27,7 +27,8 @@ addhl -group / regions -default code ruby \ literal '%[iqrswxIQRSWX]\(' \) \( \ literal '%[iqrswxIQRSWX]\{' \} \{ \ literal '%[iqrswxIQRSWX]\[' \] \[ \ - literal '%[iqrswxIQRSWX]<' > < + literal '%[iqrswxIQRSWX]<' > < \ + division '[\w\)\]](/|(\h+/\h+))' '\w' '' # Help Kakoune to better detect /…/ literals # Regular expression flags are: i → ignore case, m → multi-lines, o → only interpolate #{} blocks once, x → extended mode (ignore white spaces) # Literals are: i → array of symbols, q → string, r → regular expression, s → symbol, w → array of words, x → capture shell result