From 709c31a7378f02e0ffccbe7b1793fd298e9c687b Mon Sep 17 00:00:00 2001 From: minerobber Date: Tue, 5 Dec 2023 19:19:14 -0500 Subject: [PATCH] Syntax highlight empty strings --- bin/lua.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/lua.lua b/bin/lua.lua index 0cc9920..469ff4a 100644 --- a/bin/lua.lua +++ b/bin/lua.lua @@ -30,8 +30,10 @@ local tokens = { { "^%-%-%[%[.-%]%]", comment_colour }, { "^%-%-.*", comment_colour }, + { [[^""]], string_colour }, -- Empty strings { [[^".-[^\]"]], string_colour }, -- Complete strings { [[^"[^"]*"?]], string_colour }, -- Incomplete strings + { [[^'']], string_colour }, -- Empty strings { [[^'.-[^\]']], string_colour }, -- Complete strings { [[^'[^"]*'?]], string_colour }, -- Incomplete strings { "^%[%[.-%]%]", string_colour },