summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMilan Vaško <m.vasko2@gmail.com>2018-02-10 13:40:48 +0100
committerMilan Vaško <m.vasko2@gmail.com>2018-02-10 13:40:48 +0100
commit128e0f53ffbefcb33ae9330e42d567b2f5b82cf1 (patch)
treeb38d5b605efc2288925275eb62033b30921a6e4f
parent1df11616a86786f2ccd7bbb833995ecb8d9b23be (diff)
Fixed Lua block comment highlighting
Block comments in Lua were broken, apparently due to the opening sequence being interpreted as a line comment. Changing the order in the highlighter seems to fix this issue.
-rw-r--r--rc/base/lua.kak2
1 files changed, 1 insertions, 1 deletions
diff --git a/rc/base/lua.kak b/rc/base/lua.kak
index 9ec31b93..bf0f0122 100644
--- a/rc/base/lua.kak
+++ b/rc/base/lua.kak
@@ -14,8 +14,8 @@ hook global BufCreate .*[.](lua) %{
add-highlighter shared/ regions -default code lua \
string '"' (?<!\\)(\\\\)*" '' \
string "'" (?<!\\)(\\\\)*' '' \
- comment '--' '$' '' \
comment '--\[\[' '\]\]' '' \
+ comment '--' '$' '' \
add-highlighter shared/lua/string fill string