Changeset View
Changeset View
Standalone View
Standalone View
src/infrastructure/syntax/PhabricatorDefaultSyntaxStyle.php
<?php | <?php | ||||
final class PhabricatorDefaultSyntaxStyle | final class PhabricatorDefaultSyntaxStyle | ||||
extends PhabricatorSyntaxStyle { | extends PhabricatorSyntaxStyle { | ||||
const STYLEKEY = 'default'; | const STYLEKEY = 'default'; | ||||
public function getStyleName() { | public function getStyleName() { | ||||
return pht('Default'); | return pht('Default'); | ||||
} | } | ||||
public function getStyleMap() { | public function getStyleMap() { | ||||
return array( | return array( | ||||
'hll' => 'color: #ffffcc', | 'hll' => 'color: {$syntax.highlighted-line}', | ||||
'c' => 'color: #74777d', | 'c' => 'color: {$syntax.comment}', | ||||
'cm' => 'color: #74777d', | 'cm' => 'color: {$syntax.comment-multiline}', | ||||
'c1' => 'color: #74777d', | 'dc' => 'color: {$syntax.comment-multiline}', | ||||
'cs' => 'color: #74777d', | 'c1' => 'color: {$syntax.comment-single}', | ||||
'sd' => 'color: #000000', | 'cs' => 'color: {$syntax.comment-special}', | ||||
'sh' => 'color: #000000', | 'sd' => 'color: {$syntax.string-doc}', | ||||
's' => 'color: #766510', | 'sh' => 'color: {$syntax.string-heredoc}', | ||||
'sb' => 'color: #766510', | 's' => 'color: {$syntax.string}', | ||||
'sc' => 'color: #766510', | 'sb' => 'color: {$syntax.string-backtick}', | ||||
's2' => 'color: #766510', | 'sc' => 'color: {$syntax.literal-string-char}', | ||||
's1' => 'color: #766510', | 's2' => 'color: {$syntax.string-double}', | ||||
'sx' => 'color: #766510', | 's1' => 'color: {$syntax.string-single}', | ||||
'sr' => 'color: #bb6688', | 'sx' => 'color: {$syntax.string-other}', | ||||
'nv' => 'color: #001294', | 'sr' => 'color: {$syntax.string-regex}', | ||||
'vi' => 'color: #001294', | 'nv' => 'color: {$syntax.name-variable}', | ||||
'vg' => 'color: #001294', | 'vi' => 'color: {$syntax.variable-instance}', | ||||
'na' => 'color: #354bb3', | 'vg' => 'color: {$syntax.variable-global}', | ||||
'kc' => 'color: #000a65', | 'na' => 'color: {$syntax.name-attribute}', | ||||
'no' => 'color: #000a65', | 'kc' => 'color: {$syntax.keyword-constant}', | ||||
'k' => 'color: #aa4000', | 'no' => 'color: {$syntax.name-operator}', | ||||
'kd' => 'color: #aa4000', | 'k' => 'color: {$syntax.keyword}', | ||||
'kn' => 'color: #aa4000', | 'kd' => 'color: {$syntax.keyword-declaration}', | ||||
'kt' => 'color: #aa4000', | 'kn' => 'color: {$syntax.keyword-namespace}', | ||||
'cp' => 'color: #304a96', | 'kt' => 'color: {$syntax.keyword-type}', | ||||
'kp' => 'color: #304a96', | 'cp' => 'color: {$syntax.comment-preproc}', | ||||
'kr' => 'color: #304a96', | 'kp' => 'color: {$syntax.keyword-preproc}', | ||||
'nb' => 'color: #304a96', | 'kr' => 'color: {$syntax.keyword-reserved}', | ||||
'bp' => 'color: #304a96', | 'nb' => 'color: {$syntax.name-builtin}', | ||||
'nc' => 'color: #00702a', | 'bp' => 'color: {$syntax.builtin-pseudo}', | ||||
'nt' => 'color: #00702a', | 'nc' => 'color: {$syntax.name-class}', | ||||
'vc' => 'color: #00702a', | 'nt' => 'color: {$syntax.name-tag}', | ||||
'nf' => 'color: #004012', | 'vc' => 'color: {$syntax.name-variable-class}', | ||||
'nx' => 'color: #004012', | 'nf' => 'color: {$syntax.name-function}', | ||||
'o' => 'color: #aa2211', | 'nx' => 'color: {$syntax.name-exception}', | ||||
'ss' => 'color: #aa2211', | 'o' => 'color: {$syntax.operator}', | ||||
'm' => 'color: #601200', | 'p' => 'color: {$syntax.punctuation}', | ||||
'mf' => 'color: #601200', | 'ss' => 'color: {$syntax.literal-string-symbol}', | ||||
'mh' => 'color: #601200', | 'm' => 'color: {$syntax.literal-number}', | ||||
'mi' => 'color: #601200', | 'mf' => 'color: {$syntax.literal-number-float}', | ||||
'mo' => 'color: #601200', | 'mh' => 'color: {$syntax.literal-number-hex}', | ||||
'il' => 'color: #601200', | 'mi' => 'color: {$syntax.literal-number-integer}', | ||||
'gd' => 'color: #a00000', | 'mo' => 'color: {$syntax.literal-number-octal}', | ||||
'gr' => 'color: #ff0000', | 'il' => 'color: {$syntax.literal-number-integer-long}', | ||||
'gh' => 'color: #000080', | 'gd' => 'color: {$syntax.generic-deleted}', | ||||
'gi' => 'color: #00a000', | 'gr' => 'color: {$syntax.generic-red}', | ||||
'go' => 'color: #808080', | 'gh' => 'color: {$syntax.generic-heading}', | ||||
'gp' => 'color: #000080', | 'gi' => 'color: {$syntax.generic-inserted}', | ||||
'gu' => 'color: #800080', | 'go' => 'color: {$syntax.generic-output}', | ||||
'gt' => 'color: #0040d0', | 'gp' => 'color: {$syntax.generic-prompt}', | ||||
'nd' => 'color: #aa22ff', | 'gu' => 'color: {$syntax.generic-underline}', | ||||
'ni' => 'color: #92969d', | 'gt' => 'color: {$syntax.generic-traceback}', | ||||
'ne' => 'color: #d2413a', | 'nd' => 'color: {$syntax.name-decorator}', | ||||
'nl' => 'color: #a0a000', | 'ni' => 'color: {$syntax.name-identifier}', | ||||
'nn' => 'color: #0000ff', | 'ne' => 'color: {$syntax.name-entity}', | ||||
'ow' => 'color: #aa22ff', | 'nl' => 'color: {$syntax.name-label}', | ||||
'w' => 'color: #bbbbbb', | 'nn' => 'color: {$syntax.name-namespace}', | ||||
'se' => 'color: #bb6622', | 'ow' => 'color: {$syntax.operator-word}', | ||||
'si' => 'color: #bb66bb', | 'w' => 'color: {$syntax.text-whitespace}', | ||||
'se' => 'color: {$syntax.literal-string-escape}', | |||||
'si' => 'color: {$syntax.literal-string-interpol}', | |||||
); | ); | ||||
} | } | ||||
} | } |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0