]> git.lizzy.rs Git - micro.git/blobdiff - runtime/syntax/lua.micro
Remove duplicate PKGBUILD filetype
[micro.git] / runtime / syntax / lua.micro
index 2de03ba4015f8d1ae3806826a9f478b1e69b1872..2d755f87b94621f7058f76f394bc406001c31c86 100644 (file)
@@ -12,7 +12,7 @@
 
 
 # Automatically use for '.lua' files
-syntax "Lua" ".*\.lua$"
+syntax "lua" ".*\.lua$"
 
 # Operators
 color statement ":|\*\*|\*|/|%|\+|-|\^|>|>=|<|<=|~=|=|\.\.|\b(not|and|or)\b"
@@ -46,16 +46,16 @@ color constant "\b(false|nil|true)\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-)."
@@ -67,5 +67,5 @@ color comment "^#!.*"
 color comment "\-\-.*$"
 
 # Multiline brightblacks
-color comment (s) "\s*\-\-\s*\[\[.*?\]\]"
+color comment start="\s*\-\-\s*\[\[" end="\]\]"