mirror of
https://github.com/scopatz/nanorc
synced 2024-11-23 19:00:27 +01:00
Fix Lua multiline comment and string
This commit is contained in:
parent
ea8c78f44f
commit
ae26836577
|
@ -52,16 +52,15 @@ color red "\<([0-9]+)\>"
|
|||
# Symbols
|
||||
color brightmagenta "(\(|\)|\[|\]|\{|\})"
|
||||
|
||||
# Strings
|
||||
#color green "\"(\\.|[^\\\"])*\"|'(\\.|[^\\'])*'"
|
||||
|
||||
# Strings
|
||||
color red "\"(\\.|[^\\\"])*\"|'(\\.|[^\\'])*'"
|
||||
|
||||
# Multiline strings
|
||||
color red start="\s*\[\[" end="\]\]"
|
||||
|
||||
# Escapes
|
||||
color red "\\[0-7][0-7][0-7]|\\x[0-9a-fA-F][0-9a-fA-F]|\\[abefnrs]|(\\c|\\C-|\\M-|\\M-\\C-)."
|
||||
|
||||
|
||||
# Shebang
|
||||
color brightcyan "^#!.*"
|
||||
|
||||
|
@ -69,4 +68,4 @@ color brightcyan "^#!.*"
|
|||
color green "\-\-.*$"
|
||||
|
||||
# Multiline comments
|
||||
color green start="\-\-\[" end="]"
|
||||
color green start="\s*\-\-\s*\[\[" end="\]\]"
|
||||
|
|
Loading…
Reference in New Issue
Block a user