Table of Contents

Class SyntaxColorisationDescriptorSyntaxColorisation

Namespace
Utils.Parser.Runtime
Assembly
Utils.Parser.dll

Provides syntax colorization for .syntaxcolor descriptor files.

public sealed class SyntaxColorisationDescriptorSyntaxColorisation : ISyntaxColorisation
Inheritance
SyntaxColorisationDescriptorSyntaxColorisation
Implements
Inherited Members
Extension Methods

Properties

FileExtensions

Gets the file extensions supported by this colorization profile.

public IReadOnlyList<string> FileExtensions { get; }

Property Value

IReadOnlyList<string>

Instance

Gets a singleton profile instance.

public static SyntaxColorisationDescriptorSyntaxColorisation Instance { get; }

Property Value

SyntaxColorisationDescriptorSyntaxColorisation

StringSyntaxExtensions

Gets the StringSyntaxAttribute names supported by this profile.

public IReadOnlyList<string> StringSyntaxExtensions { get; }

Property Value

IReadOnlyList<string>

Methods

GetClassification(IEnumerable<string>)

Gets the Visual Studio classification name for a grammar rule path. The path must be ordered from parent rule to most specific rule.

public string? GetClassification(IEnumerable<string> rulePath)

Parameters

rulePath IEnumerable<string>

Ordered rule path from root to leaf.

Returns

string

The classification name to use, or null when no mapping exists.

GetClassification(string)

Gets the Visual Studio classification name for a single grammar rule.

public string? GetClassification(string ruleName)

Parameters

ruleName string

Grammar rule name.

Returns

string

The classification name to use, or null when no mapping exists.