View on GitHub

Aesi adapter for IntelliJ

An Aesi adapter for IntelliJ.

Download this project as a .zip file Download this project as a tar.gz file

aesi-intellij / org.metaborg.paplj.syntaxhighlighting / AesiTokenTypeManager

AesiTokenTypeManager

class AesiTokenTypeManager

Tracks token types.

IntelliJ can’t handle too many token types. However, we’ll still need a different token type for each different style. This class returns a token type that matches the style, if found; otherwise, creates a new token type and stores it for re-use.

The token type manager is specific to a single language.

Constructors

<init> AesiTokenTypeManager()
Tracks token types.

Properties

defaultScope val defaultScope: String
defaultTokenType val defaultTokenType: AesiTokenType

Functions

getTokenType fun getTokenType(scope: String?): AesiTokenType