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

111 lines
4.5 KiB
Go
Raw Normal View History

// Code generated by "stringer -type TokenType"; DO NOT EDIT.
2017-06-01 16:17:21 +02:00
package chroma
import "fmt"
const _TokenType_name = "EOFNoneOtherErrorHighlightLineHighlightLineNumbersBackgroundKeywordKeywordConstantKeywordDeclarationKeywordNamespaceKeywordPseudoKeywordReservedKeywordTypeNameNameAttributeNameBuiltinNameBuiltinPseudoNameClassNameConstantNameDecoratorNameEntityNameExceptionNameFunctionNameFunctionMagicNameKeywordNameLabelNameNamespaceNameOperatorNameOtherNamePseudoNamePropertyNameTagNameVariableNameVariableAnonymousNameVariableClassNameVariableGlobalNameVariableInstanceNameVariableMagicLiteralLiteralDateLiteralOtherLiteralStringLiteralStringAffixLiteralStringAtomLiteralStringBacktickLiteralStringBooleanLiteralStringCharLiteralStringDelimiterLiteralStringDocLiteralStringDoubleLiteralStringEscapeLiteralStringHeredocLiteralStringInterpolLiteralStringNameLiteralStringOtherLiteralStringRegexLiteralStringSingleLiteralStringSymbolLiteralNumberLiteralNumberBinLiteralNumberFloatLiteralNumberHexLiteralNumberIntegerLiteralNumberIntegerLongLiteralNumberOctOperatorOperatorWordPunctuationCommentCommentHashbangCommentMultilineCommentSingleCommentSpecialCommentPreprocCommentPreprocFileGenericGenericDeletedGenericEmphGenericErrorGenericHeadingGenericInsertedGenericOutputGenericPromptGenericStrongGenericSubheadingGenericTracebackGenericUnderlineTextTextWhitespaceTextSymbolTextPunctuation"
2017-06-01 16:17:21 +02:00
var _TokenType_map = map[TokenType]string{
2017-09-20 05:30:46 +02:00
-8: _TokenType_name[0:3],
-7: _TokenType_name[3:7],
-6: _TokenType_name[7:12],
-5: _TokenType_name[12:17],
-4: _TokenType_name[17:26],
-3: _TokenType_name[26:39],
-2: _TokenType_name[39:50],
-1: _TokenType_name[50:60],
1000: _TokenType_name[60:67],
1001: _TokenType_name[67:82],
1002: _TokenType_name[82:100],
1003: _TokenType_name[100:116],
1004: _TokenType_name[116:129],
1005: _TokenType_name[129:144],
1006: _TokenType_name[144:155],
2000: _TokenType_name[155:159],
2001: _TokenType_name[159:172],
2002: _TokenType_name[172:183],
2003: _TokenType_name[183:200],
2004: _TokenType_name[200:209],
2005: _TokenType_name[209:221],
2006: _TokenType_name[221:234],
2007: _TokenType_name[234:244],
2008: _TokenType_name[244:257],
2009: _TokenType_name[257:269],
2010: _TokenType_name[269:286],
2011: _TokenType_name[286:297],
2012: _TokenType_name[297:306],
2013: _TokenType_name[306:319],
2014: _TokenType_name[319:331],
2015: _TokenType_name[331:340],
2016: _TokenType_name[340:350],
2017: _TokenType_name[350:362],
2018: _TokenType_name[362:369],
2019: _TokenType_name[369:381],
2020: _TokenType_name[381:402],
2021: _TokenType_name[402:419],
2022: _TokenType_name[419:437],
2023: _TokenType_name[437:457],
2024: _TokenType_name[457:474],
3000: _TokenType_name[474:481],
3001: _TokenType_name[481:492],
3002: _TokenType_name[492:504],
3100: _TokenType_name[504:517],
3101: _TokenType_name[517:535],
3102: _TokenType_name[535:552],
3103: _TokenType_name[552:573],
3104: _TokenType_name[573:593],
3105: _TokenType_name[593:610],
3106: _TokenType_name[610:632],
3107: _TokenType_name[632:648],
3108: _TokenType_name[648:667],
3109: _TokenType_name[667:686],
3110: _TokenType_name[686:706],
3111: _TokenType_name[706:727],
3112: _TokenType_name[727:744],
3113: _TokenType_name[744:762],
3114: _TokenType_name[762:780],
3115: _TokenType_name[780:799],
3116: _TokenType_name[799:818],
3200: _TokenType_name[818:831],
3201: _TokenType_name[831:847],
3202: _TokenType_name[847:865],
3203: _TokenType_name[865:881],
3204: _TokenType_name[881:901],
3205: _TokenType_name[901:925],
3206: _TokenType_name[925:941],
4000: _TokenType_name[941:949],
4001: _TokenType_name[949:961],
5000: _TokenType_name[961:972],
6000: _TokenType_name[972:979],
6001: _TokenType_name[979:994],
6002: _TokenType_name[994:1010],
6003: _TokenType_name[1010:1023],
6004: _TokenType_name[1023:1037],
6100: _TokenType_name[1037:1051],
6101: _TokenType_name[1051:1069],
7000: _TokenType_name[1069:1076],
7001: _TokenType_name[1076:1090],
7002: _TokenType_name[1090:1101],
7003: _TokenType_name[1101:1113],
7004: _TokenType_name[1113:1127],
7005: _TokenType_name[1127:1142],
7006: _TokenType_name[1142:1155],
7007: _TokenType_name[1155:1168],
7008: _TokenType_name[1168:1181],
7009: _TokenType_name[1181:1198],
7010: _TokenType_name[1198:1214],
7011: _TokenType_name[1214:1230],
8000: _TokenType_name[1230:1234],
8001: _TokenType_name[1234:1248],
8002: _TokenType_name[1248:1258],
8003: _TokenType_name[1258:1273],
2017-06-01 16:17:21 +02:00
}
func (i TokenType) String() string {
if str, ok := _TokenType_map[i]; ok {
return str
}
return fmt.Sprintf("TokenType(%d)", i)
}