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.
This commit is contained in:
Milan Vaško 2018-02-10 13:40:48 +01:00
parent 1df11616a8
commit 128e0f53ff

View File

@ -14,8 +14,8 @@ hook global BufCreate .*[.](lua) %{
add-highlighter shared/ regions -default code lua \ add-highlighter shared/ regions -default code lua \
string '"' (?<!\\)(\\\\)*" '' \ string '"' (?<!\\)(\\\\)*" '' \
string "'" (?<!\\)(\\\\)*' '' \ string "'" (?<!\\)(\\\\)*' '' \
comment '--' '$' '' \
comment '--\[\[' '\]\]' '' \ comment '--\[\[' '\]\]' '' \
comment '--' '$' '' \
add-highlighter shared/lua/string fill string add-highlighter shared/lua/string fill string