From 576f7b13b9bf98ffc85192eef39dfbc19c0a9c02 Mon Sep 17 00:00:00 2001 From: Jimmy Thrasher Date: Wed, 21 Nov 2018 16:44:41 -0500 Subject: [PATCH] Don't highlight Ruby eigenclass definitions as here docs E.g. for the following code snippet, the code was highlighted as a string ```ruby class Bob class < fill meta -add-highlighter shared/ruby/heredoc region '<<[-~]?(\w+)' '^\h*(\w+)$' fill string +add-highlighter shared/ruby/heredoc region '<<[-~]?(?!self)(\w+)' '^\h*(\w+)$' fill string add-highlighter shared/ruby/division region '[\w\)\]](/|(\h+/\h+))' '\w' group # 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)