# Automatically use for '.lua' files
-syntax "Lua" ".*\.lua$"
+syntax "lua" ".*\.lua$"
# Operators
color statement ":|\*\*|\*|/|%|\+|-|\^|>|>=|<|<=|~=|=|\.\.|\b(not|and|or)\b"
color statement "(\b(dofile|require|include)|%q|%!|%Q|%r|%x)\b"
# Numbers
-color constant "\b([0-9]+)\b"
+color constant.number "\b([0-9]+)\b"
# Symbols
color statement "(\(|\)|\[|\]|\{|\})"
# Strings
-color constant "\"(\\.|[^\\\"])*\"|'(\\.|[^\\'])*'"
+color constant.string "\"(\\.|[^\\\"])*\"|'(\\.|[^\\'])*'"
# Multiline strings
-color constant (s) "\s*\[\[.*?\]\]"
+color constant start="\s*\[\[" end="\]\]"
# Escapes
color special "\\[0-7][0-7][0-7]|\\x[0-9a-fA-F][0-9a-fA-F]|\\[abefnrs]|(\\c|\\C-|\\M-|\\M-\\C-)."
color comment "\-\-.*$"
# Multiline brightblacks
-color comment (s) "\s*\-\-\s*\[\[.*?\]\]"
+color comment start="\s*\-\-\s*\[\[" end="\]\]"