1
0
mirror of https://github.com/alecthomas/chroma.git synced 2025-01-14 02:23:16 +02:00
chroma/tokentype_string.go
2017-09-21 20:02:53 +10:00

109 lines
4.5 KiB
Go

// Code generated by "stringer -type TokenType"; DO NOT EDIT.
package chroma
import "fmt"
const _TokenType_name = "NoneOtherErrorLineHighlightLineNumbersBackgroundKeywordKeywordConstantKeywordDeclarationKeywordNamespaceKeywordPseudoKeywordReservedKeywordTypeNameNameAttributeNameBuiltinNameBuiltinPseudoNameClassNameConstantNameDecoratorNameEntityNameExceptionNameFunctionNameFunctionMagicNameKeywordNameLabelNameNamespaceNameOperatorNameOtherNamePseudoNamePropertyNameTagNameVariableNameVariableAnonymousNameVariableClassNameVariableGlobalNameVariableInstanceNameVariableMagicLiteralLiteralDateLiteralOtherLiteralStringLiteralStringAffixLiteralStringAtomLiteralStringBacktickLiteralStringBooleanLiteralStringCharLiteralStringDelimiterLiteralStringDocLiteralStringDoubleLiteralStringEscapeLiteralStringHeredocLiteralStringInterpolLiteralStringNameLiteralStringOtherLiteralStringRegexLiteralStringSingleLiteralStringSymbolLiteralNumberLiteralNumberBinLiteralNumberFloatLiteralNumberHexLiteralNumberIntegerLiteralNumberIntegerLongLiteralNumberOctOperatorOperatorWordPunctuationCommentCommentHashbangCommentMultilineCommentSingleCommentSpecialCommentPreprocCommentPreprocFileGenericGenericDeletedGenericEmphGenericErrorGenericHeadingGenericInsertedGenericOutputGenericPromptGenericStrongGenericSubheadingGenericTracebackGenericUnderlineTextTextWhitespaceTextSymbolTextPunctuation"
var _TokenType_map = map[TokenType]string{
-6: _TokenType_name[0:4],
-5: _TokenType_name[4:9],
-4: _TokenType_name[9:14],
-3: _TokenType_name[14:27],
-2: _TokenType_name[27:38],
-1: _TokenType_name[38:48],
1000: _TokenType_name[48:55],
1001: _TokenType_name[55:70],
1002: _TokenType_name[70:88],
1003: _TokenType_name[88:104],
1004: _TokenType_name[104:117],
1005: _TokenType_name[117:132],
1006: _TokenType_name[132:143],
2000: _TokenType_name[143:147],
2001: _TokenType_name[147:160],
2002: _TokenType_name[160:171],
2003: _TokenType_name[171:188],
2004: _TokenType_name[188:197],
2005: _TokenType_name[197:209],
2006: _TokenType_name[209:222],
2007: _TokenType_name[222:232],
2008: _TokenType_name[232:245],
2009: _TokenType_name[245:257],
2010: _TokenType_name[257:274],
2011: _TokenType_name[274:285],
2012: _TokenType_name[285:294],
2013: _TokenType_name[294:307],
2014: _TokenType_name[307:319],
2015: _TokenType_name[319:328],
2016: _TokenType_name[328:338],
2017: _TokenType_name[338:350],
2018: _TokenType_name[350:357],
2019: _TokenType_name[357:369],
2020: _TokenType_name[369:390],
2021: _TokenType_name[390:407],
2022: _TokenType_name[407:425],
2023: _TokenType_name[425:445],
2024: _TokenType_name[445:462],
3000: _TokenType_name[462:469],
3001: _TokenType_name[469:480],
3002: _TokenType_name[480:492],
3100: _TokenType_name[492:505],
3101: _TokenType_name[505:523],
3102: _TokenType_name[523:540],
3103: _TokenType_name[540:561],
3104: _TokenType_name[561:581],
3105: _TokenType_name[581:598],
3106: _TokenType_name[598:620],
3107: _TokenType_name[620:636],
3108: _TokenType_name[636:655],
3109: _TokenType_name[655:674],
3110: _TokenType_name[674:694],
3111: _TokenType_name[694:715],
3112: _TokenType_name[715:732],
3113: _TokenType_name[732:750],
3114: _TokenType_name[750:768],
3115: _TokenType_name[768:787],
3116: _TokenType_name[787:806],
3200: _TokenType_name[806:819],
3201: _TokenType_name[819:835],
3202: _TokenType_name[835:853],
3203: _TokenType_name[853:869],
3204: _TokenType_name[869:889],
3205: _TokenType_name[889:913],
3206: _TokenType_name[913:929],
4000: _TokenType_name[929:937],
4001: _TokenType_name[937:949],
5000: _TokenType_name[949:960],
6000: _TokenType_name[960:967],
6001: _TokenType_name[967:982],
6002: _TokenType_name[982:998],
6003: _TokenType_name[998:1011],
6004: _TokenType_name[1011:1025],
6100: _TokenType_name[1025:1039],
6101: _TokenType_name[1039:1057],
7000: _TokenType_name[1057:1064],
7001: _TokenType_name[1064:1078],
7002: _TokenType_name[1078:1089],
7003: _TokenType_name[1089:1101],
7004: _TokenType_name[1101:1115],
7005: _TokenType_name[1115:1130],
7006: _TokenType_name[1130:1143],
7007: _TokenType_name[1143:1156],
7008: _TokenType_name[1156:1169],
7009: _TokenType_name[1169:1186],
7010: _TokenType_name[1186:1202],
7011: _TokenType_name[1202:1218],
8000: _TokenType_name[1218:1222],
8001: _TokenType_name[1222:1236],
8002: _TokenType_name[1236:1246],
8003: _TokenType_name[1246:1261],
}
func (i TokenType) String() string {
if str, ok := _TokenType_map[i]; ok {
return str
}
return fmt.Sprintf("TokenType(%d)", i)
}