diff --git a/syntax/cmake.nanorc b/syntax/cmake.nanorc index 524c842d..32633aaf 100644 --- a/syntax/cmake.nanorc +++ b/syntax/cmake.nanorc @@ -6,11 +6,11 @@ comment "#" icolor green "^[[:space:]]*[A-Z0-9_]+" icolor brightyellow "^[[:space:]]*(include|include_directories|include_external_msproject)\>" -icolor brightgreen "^[[:space:]]*\<((else|end)?if|else|(end)?while|(end)?foreach|break)\>" -color brightgreen "\<(NOT|COMMAND|POLICY|TARGET|EXISTS|IS_(DIRECTORY|ABSOLUTE)|DEFINED)\>[[:space:]]" -color brightgreen "[[:space:]]\<(OR|AND|IS_NEWER_THAN|MATCHES|(STR|VERSION_)?(LESS|GREATER|EQUAL))\>[[:space:]]" +icolor brightgreen "^[[:space:]]*((else|end)?if|else|(end)?while|(end)?foreach|break)\>" +color brightgreen "\<(NOT|COMMAND|POLICY|TARGET|EXISTS|IS_(DIRECTORY|ABSOLUTE)|DEFINED)[[:space:]]" +color brightgreen "[[:space:]](OR|AND|IS_NEWER_THAN|MATCHES|(STR|VERSION_)?(LESS|GREATER|EQUAL))[[:space:]]" -icolor brightred "^[[:space:]]*\<((end)?(function|macro)|return)" +icolor brightred "^[[:space:]]*((end)?(function|macro)|return)" icolor cyan start="\$(\{|ENV\{)" end="\}" color magenta "\<(APPLE|UNIX|WIN32|CYGWIN|BORLAND|MINGW|MSVC(_IDE|60|71|80|90)?)\>" diff --git a/syntax/gentoo.nanorc b/syntax/gentoo.nanorc index eb2877bb..330db661 100644 --- a/syntax/gentoo.nanorc +++ b/syntax/gentoo.nanorc @@ -24,7 +24,7 @@ color red "\" color red "\" color red "\<(PATCHES|(HTML_)?DOCS)\>" "\" "\" ## Portage commands: -color magenta "\<(use(_(with|enable|if_iuse)|x)?|in_iuse)\> [!a-zA-Z0-9_+ -]*" "inherit.*" +color magenta "\<(use(_(with|enable|if_iuse)|x)?|in_iuse) [!a-zA-Z0-9_+ -]*" "inherit.*" color brightblue "\" color brightblue "\" "\" color brightblue "\" "\" diff --git a/syntax/lua.nanorc b/syntax/lua.nanorc index 3692f615..73a22996 100644 --- a/syntax/lua.nanorc +++ b/syntax/lua.nanorc @@ -17,7 +17,7 @@ color brightyellow ":|\*|/|%|\+|-|\^|>|>=|<|<=|~=|=|\.\.|\<(not|and|or)\>" color brightblue "\<(do|end|while|repeat|until|if|elseif|then|else|for|in|function|local|return|break)\>" # Keywords -color brightyellow "\<(io|math|os|string|table|coroutine|debug)\>\." +color brightyellow "\<(io|math|os|string|table|coroutine|debug)\." color brightyellow "\<(_G|_VERSION|assert|collectgarbage|dofile|error|getfenv|getmetatable|ipairs|load|loadfile|module|next|pairs|pcall|print|rawequal|rawget|rawset|require|select|setfenv|setmetatable|tonumber|tostring|type|unpack|xpcall)\s*\(" # Standard library @@ -33,7 +33,7 @@ color brightyellow "\" # File handle methods -color brightyellow "\:\<(close|flush|lines|read|seek|setvbuf|write)\>" +color brightyellow ":(close|flush|lines|read|seek|setvbuf|write)\>" # false, nil, true color brightmagenta "\<(false|nil|true)\>" diff --git a/syntax/objc.nanorc b/syntax/objc.nanorc index ff5ea40f..70fb6c6e 100644 --- a/syntax/objc.nanorc +++ b/syntax/objc.nanorc @@ -12,7 +12,7 @@ color green "\<(class|namespace|template|public|protected|private|typename|this| color brightgreen "\<(for|if|while|do|else|case|default|switch)\>" color brightgreen "\<(try|throw|catch|operator|new|delete)\>" color brightgreen "\<(goto|continue|break|return)\>" -color brightgreen "@\<(en(code|d)|i(mplementation|nterface)|selector)\>" +color brightgreen "@(encode|end|implementation|interface)|selector)\>" # GCC builtins. color cyan "__attribute__[[:space:]]*\(\([^)]*\)\)" "__(aligned|asm|builtin|hidden|inline|packed|restrict|section|typeof|weak)__" diff --git a/syntax/po.nanorc b/syntax/po.nanorc index 2adbb5f9..526c1c2f 100644 --- a/syntax/po.nanorc +++ b/syntax/po.nanorc @@ -11,7 +11,7 @@ color brightred "^\"X-Bugs:.*\"$" color brightmagenta "\<(Project\-Id\-Version|Report\-Msgid\-Bugs\-To|Last\-Translator|Language(\-Team)?|X-Bugs|X-Generator|Plural\-Forms)\>" color cyan "\<(POT\-Creation\-Date|PO\-Revision\-Date|MIME\-Version|Content\-Type|Content\-Transfer\-Encoding)\>" # Encodings and numbers. -color yellow "\<(UTF|ISO|Windows|Mac|IBM)\>\-[0-9]" +color yellow "\<(UTF|ISO|Windows|Mac|IBM)-[0-9]+" color yellow "[0-9]|pre[0-9]|[0-9]bit" # Msgids. color brightblue "^(msgid|msgid_plural|msgstr)\>" diff --git a/syntax/pov.nanorc b/syntax/pov.nanorc index 7c5d764b..7c14f7f3 100644 --- a/syntax/pov.nanorc +++ b/syntax/pov.nanorc @@ -7,7 +7,7 @@ color brightcyan "^[[:space:]]*#[[:space:]]*(declare)" color brightyellow "\<(sphere|cylinder|translate|matrix|rotate|scale)\>" color brightyellow "\<(orthographic|location|up|right|direction|clipped_by)\>" color brightyellow "\<(fog_type|fog_offset|fog_alt|rgb|distance|transform)\>" -color brightred "^\<(texture)\>" +color brightred "^texture\>" color brightred "\<(light_source|background)\>" color brightred "\<(fog|object|camera)\>" color green "(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|!|=|&|\|)"