- todo In highlight.php 10.x, replace the @final attribute with the
finalkeyword. - final
- internal // Backward compatibility properties
- property \Mode $mode (DEPRECATED) All properties traditionally inside of $mode are now available directly from this class.
- property bool $caseInsensitive (DEPRECATED) Due to compatibility requirements with highlight.js, use
case_insensitiveinstead.
CloneableInstantiable
- Extends
stdClass Highlight \Mode
| Properties |
public $name = NULL
|
| Methods |
public __construct( $lang, $filePath)
|
public __get( $name)
|
| public compile( $safeMode) Compile the Language definition.
|
| Properties |
private static $COMMON_KEYWORDS = ['of', 'and', 'for', 'in', 'not', 'or', 'if', 'then']
|
private $mode = NULL
|
| Methods |
private commonKeyword( $word)
|
private compileKeywords( $rawKeywords, $caseSensitive)
|
private compileMode( $mode, $parent = NULL)
|
private dependencyOnParent( $mode)
|
private expandOrCloneMode( $mode)
|
| private inherit( $params, $_ = []) Performs a shallow merge of multiple objects into one.
|
private langRe( $value, $global = false)
|
private scoreForKeyword( $keyword, $providedScore)
|
private splitAndCompile( $className, $str, array $compiledKeywords, $caseSensitive)
|
| Properties |
private static $COMMON_KEYWORDS = ['of', 'and', 'for', 'in', 'not', 'or', 'if', 'then']
|
| Methods |