mirror of
https://github.com/mawww/kakoune.git
synced 2024-11-25 02:24:51 +03:00
ruby.kak: support squiggly heredocs
Squiggly heredocs were introduced in Ruby 2.3. They work like `<<-` but strip indentation.
This commit is contained in:
parent
a732037b53
commit
7c0d10f458
@ -22,7 +22,7 @@ add-highlighter shared/ regions -default code -match-capture ruby \
|
||||
literal '%[iqrswxIQRSWX]\{' \} \{ \
|
||||
literal '%[iqrswxIQRSWX]\[' \] \[ \
|
||||
literal '%[iqrswxIQRSWX]<' > < \
|
||||
heredoc '<<-?(\w+)' '^\h*(\w+)$' '' \
|
||||
heredoc '<<[-~]?(\w+)' '^\h*(\w+)$' '' \
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user