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