Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrLanguageNotFound = errors.New("can't find language in registry")
ErrLanguageNotFound is returned when a requested language is not present in the registry.
Functions ¶
Types ¶
type Contains ¶
type Contains struct { CaseInsensitive bool Aliases []string Illegal string ClassName string Contains []*Contains Variants []*Contains Starts *Contains SubLanguage []string Begin *pcre.Regexp End *pcre.Regexp BeginKeywords []string Keywords *Keywords ExcludeEnd bool Relevance float64 // Ref and IsArray are used for resolving circular references within the // definitions. Ref []string IsArray bool }
Contains represents a subsection that can match different parts of the code.
func (*Contains) UnmarshalJSON ¶
UnmarshalJSON unmarshals.
Click to show internal directories.
Click to hide internal directories.