mirror of
https://github.com/zyedidia/micro.git
synced 2026-02-10 00:50:19 +09:00
* Adds new syntax groups and docs * Large refactor of syntax highlighting files * Changed keybindings for changing tabs. * Improved the documentation. * Added F3 for find to default bindings. * Massive overhaul of the syntax files * Phase 1 color-scheme updates. * The new colorschemes. * Colorscheme and syntax updates. * Tiny fix to the cmc theme. * Another phase of colorschemes and testing gitconfig. * Fixed haskell error * Fortran fix * Delete test.txt Heh, sorry about forgetting to do this again.
37 lines
1.3 KiB
Plaintext
37 lines
1.3 KiB
Plaintext
#This file probably needs cleanup!!
|
|
syntax "php" "\.php[2345s~]?$"
|
|
color symbol.brackets "<.+?>"
|
|
color preproc "<\?(php|=)?"
|
|
color preproc "\?>"
|
|
#color preproc start="<\?(php|=)?" end="\?>"
|
|
|
|
color identifier.class "([a-zA-Z0-9_-]+)\("
|
|
|
|
color type "(var|class|goto|extends|function|echo|case|break|default|exit|switch|foreach|endforeach|while|const|static|extends|as|require|include|require_once|include_once|define|do|continue|declare|goto|print|in|trait|interface|[E|e]xception|array|int|string|bool|iterable|void)[\s|\)]"
|
|
|
|
color identifier.class "[a-zA-Z\\]+::"
|
|
|
|
color identifier "new\s([a-zA-Z0-9\\]+)"
|
|
color identifier "([A-Z][a-zA-Z0-9_]+)\s"
|
|
color identifier "([A-Z0-9_]+)[;|\s|\)|,]"
|
|
|
|
color statement "(implements|abstract|global|public|instanceof|private|protected|static|if|else|elseif|endif|namespace|use|as|new|throw|catch|try|return)[\s|;]"
|
|
|
|
color constant.bool "(true|false|null|TRUE|FALSE|NULL)"
|
|
|
|
color constant "[\s|=|>|\s|\(|/|+|-|\*|\[](\d+)"
|
|
|
|
color identifier "(\$this|parent|self|\$this->)"
|
|
|
|
color symbol.operator "(=>|===|!==|==|!=|&&|\|\||::|=|->|\!)"
|
|
|
|
color identifier.var "(\$[a-zA-Z0-9\-_]+)"
|
|
color symbol.operator "[\(|\)|/|+|-|\*|\[|,|;]"
|
|
|
|
color constant.string ""(\\.|[^"])*"|'(\\.|[^'])*'"
|
|
color constant.specialChar "\\[abfnrtv'\"\\]"
|
|
|
|
color comment "(^|[[:space:]])//.*"
|
|
color comment "(^|[[:space:]])#.*"
|
|
color comment start="/\*" end="\*/"
|