Highlight nested == comments/strings in lua.
For example, [==[ string ]==]
This commit is contained in:
parent
c79d2a3bf8
commit
42f78dfac3
|
@ -11,11 +11,12 @@ hook global BufCreate .*[.](lua) %{
|
|||
# Highlighters
|
||||
# ‾‾‾‾‾‾‾‾‾‾‾‾
|
||||
|
||||
add-highlighter shared/ regions -default code lua \
|
||||
string '"' (?<!\\)(\\\\)*" '' \
|
||||
string "'" (?<!\\)(\\\\)*' '' \
|
||||
comment '--\[\[' '\]\]' '' \
|
||||
comment '--' '$' '' \
|
||||
add-highlighter shared/ regions -default code -match-capture lua \
|
||||
string '"' (?<!\\)(\\\\)*" '' \
|
||||
string "'" (?<!\\)(\\\\)*' '' \
|
||||
string '\[(=*)\[' '\](=*)\]' '' \
|
||||
comment '--\[(=*)\[' '\](=*)\]' '' \
|
||||
comment '--' '$' '' \
|
||||
|
||||
add-highlighter shared/lua/string fill string
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user