mirror of
https://github.com/mawww/kakoune.git
synced 2024-12-28 22:22:41 +03:00
Add rule for % string literals without bracket/style chars; no recurse yet
Becuase %Q^hello^ is a perfectly valid Ruby string literal. Strange, I know.
This commit is contained in:
parent
e3f3297334
commit
92558bb675
@ -52,6 +52,7 @@ add-highlighter shared/ruby/ region -recurse \( '%[iqrswxIQRSWX]?\(
|
||||
add-highlighter shared/ruby/ region -recurse \{ '%[iqrswxIQRSWX]?\{' \} fill meta
|
||||
add-highlighter shared/ruby/ region -recurse \[ '%[iqrswxIQRSWX]?\[' \] fill meta
|
||||
add-highlighter shared/ruby/ region -recurse < '%[iqrswxIQRSWX]?<' > fill meta
|
||||
add-highlighter shared/ruby/ region -match-capture '%[iqrswxIQRSWX]?([^0-9A-Za-z\(\{\[<>\]\}\)])' ([^0-9A-Za-z\(\{\[<>\]\}\)]) fill meta
|
||||
add-highlighter shared/ruby/heredoc region '<<[-~]?(?!self)(\w+)' '^\h*(\w+)$' fill string
|
||||
add-highlighter shared/ruby/division region '[\w\)\]]\K(/|(\h+/\h+))' '\w' group # Help Kakoune to better detect /…/ literals
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user