Skip to content

Commit

Permalink
Fix Lua multiline comment and string
Browse files Browse the repository at this point in the history
  • Loading branch information
tapir committed Feb 16, 2016
1 parent ea8c78f commit ae26836
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions lua.nanorc
Original file line number Diff line number Diff line change
Expand Up @@ -52,21 +52,20 @@ 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 "^#!.*"
color brightcyan "^#!.*"

# Simple comments
color green "\-\-.*$"
color green "\-\-.*$"

# Multiline comments
color green start="\-\-\[" end="]"
color green start="\s*\-\-\s*\[\[" end="\]\]"

0 comments on commit ae26836

Please sign in to comment.