Obelisk::TmThemeExporter
Exports themes to TextMate .tmTheme XML plist format
Constants
TOKEN_TO_SCOPE = {TokenType::Comment => "comment", TokenType::CommentSingle => "comment.line", TokenType::CommentMultiline => "comment.block", TokenType::CommentHashbang => "comment.line.shebang", TokenType::CommentPreproc => "comment.block.preprocessor", TokenType::CommentSpecial => "comment.block.documentation", TokenType::LiteralString => "string", TokenType::LiteralStringSingle => "string.quoted.single", TokenType::LiteralStringDouble => "string.quoted.double", TokenType::LiteralStringBacktick => "string.quoted.other", TokenType::LiteralStringHeredoc => "string.unquoted.heredoc", TokenType::LiteralStringInterpol => "string.interpolated", TokenType::LiteralStringRegex => "string.regexp", TokenType::LiteralStringEscape => "constant.character.escape", TokenType::LiteralStringSymbol => "constant.other.symbol", TokenType::LiteralNumber => "constant.numeric", TokenType::LiteralNumberInteger => "constant.numeric.integer", TokenType::LiteralNumberFloat => "constant.numeric.float", TokenType::LiteralNumberHex => "constant.numeric.hex", TokenType::LiteralNumberOct => "constant.numeric.octal", TokenType::LiteralNumberBin => "constant.numeric.binary", TokenType::Keyword => "keyword", TokenType::KeywordConstant => "keyword.other", TokenType::KeywordDeclaration => "storage.type", TokenType::KeywordNamespace => "keyword.other", TokenType::KeywordPseudo => "keyword.other", TokenType::KeywordReserved => "keyword.control", TokenType::KeywordType => "storage.type", TokenType::NameVariable => "variable", TokenType::NameVariableClass => "variable.other.class", TokenType::NameVariableGlobal => "variable.other.global", TokenType::NameVariableInstance => "variable.other.instance", TokenType::NameVariableMagic => "variable.language", TokenType::NameFunction => "entity.name.function", TokenType::NameFunctionMagic => "entity.name.function.magic", TokenType::NameClass => "entity.name.class", TokenType::NameNamespace => "entity.name.namespace", TokenType::NameTag => "entity.name.tag", TokenType::NameAttribute => "entity.other.attribute-name", TokenType::NameConstant => "constant.other", TokenType::NameBuiltin => "support.function", TokenType::NameBuiltinPseudo => "support.function", TokenType::NameDecorator => "entity.name.decorator", TokenType::NameEntity => "entity.name", TokenType::NameException => "entity.name.exception", TokenType::NameLabel => "entity.name.label", TokenType::NameProperty => "variable.other.property", TokenType::Operator => "keyword.operator", TokenType::OperatorWord => "keyword.operator", TokenType::Punctuation => "punctuation", TokenType::Error => "invalid.illegal", TokenType::Other => "source", TokenType::Text => "text", TokenType::GenericHeading => "markup.heading", TokenType::GenericSubheading => "markup.heading", TokenType::GenericStrong => "markup.bold", TokenType::GenericEmph => "markup.italic", TokenType::GenericDeleted => "markup.deleted", TokenType::GenericInserted => "markup.inserted", TokenType::GenericError => "markup.error", TokenType::GenericOutput => "markup.output", TokenType::GenericPrompt => "markup.prompt", TokenType::GenericTraceback => "markup.traceback"}
TokenType to TextMate scope mapping
Constructors
new(style : Style)
SourceInstance methods
export
Source