Highlight nested == comments/strings in lua.

For example,

  [==[ string ]==]
This commit is contained in:
Jacob Dufault 2018-02-11 22:23:49 -08:00
parent c79d2a3bf8
commit 42f78dfac3

View File

@ -11,10 +11,11 @@ hook global BufCreate .*[.](lua) %{
# Highlighters # Highlighters
# ‾‾‾‾‾‾‾‾‾‾‾‾ # ‾‾‾‾‾‾‾‾‾‾‾‾
add-highlighter shared/ regions -default code lua \ add-highlighter shared/ regions -default code -match-capture lua \
string '"' (?<!\\)(\\\\)*" '' \ string '"' (?<!\\)(\\\\)*" '' \
string "'" (?<!\\)(\\\\)*' '' \ string "'" (?<!\\)(\\\\)*' '' \
comment '--\[\[' '\]\]' '' \ string '\[(=*)\[' '\](=*)\]' '' \
comment '--\[(=*)\[' '\](=*)\]' '' \
comment '--' '$' '' \ comment '--' '$' '' \
add-highlighter shared/lua/string fill string add-highlighter shared/lua/string fill string