mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-16 13:57:07 +09:00
Add gruvbox truecolor colorscheme (#530)
* Add gruvbox truecolor colorscheme * Fixed typo in gruvbox-tv, added operator type in colorschemes * Added operator type to all default themes * Changed operator to symbol * changed operator to symbol due to name conflict * Removed unused 'operator' field. Fixed gutter-error color * Restored the statement group and removed operator
This commit is contained in:
committed by
Zachary Yedidia
parent
ea57d8b883
commit
f7560c3311
@@ -1,6 +1,6 @@
|
||||
##############################################################################
|
||||
#
|
||||
# Lua syntax highlighting for Nano.
|
||||
# Lua syntax highlighting for Micro.
|
||||
#
|
||||
# Author: Matthew Wild <mwild1 (at) gmail.com>
|
||||
# License: GPL 2 or later
|
||||
@@ -14,12 +14,12 @@
|
||||
# Automatically use for '.lua' files
|
||||
syntax "lua" ".*\.lua$"
|
||||
|
||||
# Operators
|
||||
color statement ":|\*\*|\*|/|%|\+|-|\^|>|>=|<|<=|~=|=|\.\.|\b(not|and|or)\b"
|
||||
|
||||
# Statements
|
||||
color statement "\b(do|end|while|repeat|until|if|elseif|then|else|for|in|function|local|return)\b"
|
||||
|
||||
# Logic
|
||||
color statement "\b(not|and|or)\b"
|
||||
|
||||
# Keywords
|
||||
color statement "\b(debug|string|math|table|io|coroutine|os|utf8|bit32)\b\."
|
||||
color statement "\b(_ENV|_G|_VERSION|assert|collectgarbage|dofile|error|getfenv|getmetatable|ipairs|load|loadfile|module|next|pairs|pcall|print|rawequal|rawget|rawlen|rawset|require|select|setfenv|setmetatable|tonumber|tostring|type|unpack|xpcall)\s*\("
|
||||
@@ -49,7 +49,7 @@ color statement "(\b(dofile|require|include)|%q|%!|%Q|%r|%x)\b"
|
||||
color constant.number "\b([0-9]+)\b"
|
||||
|
||||
# Symbols
|
||||
color statement "(\(|\)|\[|\]|\{|\})"
|
||||
color symbol "(\(|\)|\[|\]|\{|\}|\*\*|\*|/|%|\+|-|\^|>|>=|<|<=|~=|=|\.\.)"
|
||||
|
||||
# Strings
|
||||
color constant.string "\"(\\.|[^\\\"])*\"|'(\\.|[^\\'])*'"
|
||||
|
||||
Reference in New Issue
Block a user