Highlight::Mode
Constructors
new
SourceClass methods
frozen
SourceInstance methods
aliases
Sourcebefore_begin
Sourcebefore_begin=(before_begin : ModeCallback | Nil)
Sourcebefore_match
Sourcebefore_match=(before_match : Pattern | Nil)
Sourcebegin_keywords
Sourcebegin_re
Sourcebegin_re=(begin_re : JSRe | Nil)
Sourcebegin_scope
Sourcebegin_scope=(begin_scope : ScopeVal | Nil)
Sourcecached_variants
Sourceclass_name
Sourceclass_name_aliases
Sourcecompiler_extensions
Sourcedisable_autodetect
Sourcedup_shallow
Sourceend
Sourceend=(end __arg0 : Pattern | Nil)
Sourceend_re
Sourceend_re=(end_re : JSRe | Nil)
Sourceend_scope
Sourceend_scope=(end_scope : ScopeVal | Nil)
Sourceends_parent
Sourceends_with_parent
Sourceexclude_begin
Sourceexclude_end
Sourceexports
Sourcefrozen_content=(frozen_content : Bool)
аналог Object.freeze: expandOrCloneMode делает копию замороженного
illegal
Sourceillegal=(illegal : Pattern | Nil)
Sourceillegal_re
Sourceillegal_re=(illegal_re : JSRe | Nil)
Sourceinherit(override : Mode | Nil = nil, *, clear_variants : Bool = false, clear_starts : Bool = false, clear_scope : Bool = false, clear_illegal : Bool = false, clear_contains : Bool = false) : Mode
JS inherit: копия base, поверх — поля override (только присутствующие).
clear_* — явные null-перезаписи из оригинала (copy_from nil не чистит).
is_compiled?
Sourcekeyword_pattern_re
Sourcekeyword_pattern_re=(keyword_pattern_re : JSRe | Nil)
Sourcekeywords
Sourcekeywords=(keywords : KeywordsVal | Nil)
Sourcekeywords_compiled
Sourcekeywords_compiled=(keywords_compiled : MatchGroups | Nil)
Sourcelabel
Sourcematch
Sourcematch=(match : Pattern | Nil)
Sourcematcher
Sourcematcher=(matcher : ResumableMultiRegex | Nil)
Sourceon_end
Sourceon_end=(on_end : ModeCallback | Nil)
Sourceparent
Sourceparent=(parent : Mode | Nil)
Sourceraw_definition
Sourcerelevance
Sourcereturn_begin
Sourcereturn_end
Sourcestarts
Sourcestarts=(starts : Mode | Nil)
Sourcesub_language
Sourcesuperset_of
Sourceterminator_end
Sourceunicode_regex
Sourcevariants
Source