1
0
mirror of https://github.com/alecthomas/chroma.git synced 2025-01-12 01:22:30 +02:00
chroma/tokentype_string.go
2017-06-07 19:47:59 +10:00

97 lines
3.9 KiB
Go

// Code generated by "stringer -type TokenType"; DO NOT EDIT
package chroma
import "fmt"
const _TokenType_name = "EscapeErrorOtherKeywordKeywordConstantKeywordDeclarationKeywordNamespaceKeywordPseudoKeywordReservedKeywordTypeNameNameAttributeNameBuiltinNameBuiltinPseudoNameClassNameConstantNameDecoratorNameEntityNameExceptionNameFunctionNameFunctionMagicNamePropertyNameLabelNameNamespaceNameOtherNameTagNameVariableNameVariableClassNameVariableGlobalNameVariableInstanceNameVariableMagicLiteralLiteralDateLiteralStringLiteralStringAffixLiteralStringBacktickLiteralStringCharLiteralStringDelimiterLiteralStringDocLiteralStringDoubleLiteralStringEscapeLiteralStringHeredocLiteralStringInterpolLiteralStringOtherLiteralStringRegexLiteralStringSingleLiteralStringSymbolLiteralStringNameLiteralNumberLiteralNumberBinLiteralNumberFloatLiteralNumberHexLiteralNumberIntegerLiteralNumberIntegerLongLiteralNumberOctOperatorOperatorWordPunctuationCommentCommentHashbangCommentMultilineCommentSingleCommentSpecialCommentPreprocCommentPreprocFileGenericGenericDeletedGenericEmphGenericErrorGenericHeadingGenericInsertedGenericOutputGenericPromptGenericStrongGenericSubheadingGenericTracebackGenericUnderlineTextTextWhitespace"
var _TokenType_map = map[TokenType]string{
0: _TokenType_name[0:6],
1: _TokenType_name[6:11],
2: _TokenType_name[11:16],
1000: _TokenType_name[16:23],
1001: _TokenType_name[23:38],
1002: _TokenType_name[38:56],
1003: _TokenType_name[56:72],
1004: _TokenType_name[72:85],
1005: _TokenType_name[85:100],
1006: _TokenType_name[100:111],
2000: _TokenType_name[111:115],
2001: _TokenType_name[115:128],
2002: _TokenType_name[128:139],
2003: _TokenType_name[139:156],
2004: _TokenType_name[156:165],
2005: _TokenType_name[165:177],
2006: _TokenType_name[177:190],
2007: _TokenType_name[190:200],
2008: _TokenType_name[200:213],
2009: _TokenType_name[213:225],
2010: _TokenType_name[225:242],
2011: _TokenType_name[242:254],
2012: _TokenType_name[254:263],
2013: _TokenType_name[263:276],
2014: _TokenType_name[276:285],
2015: _TokenType_name[285:292],
2016: _TokenType_name[292:304],
2017: _TokenType_name[304:321],
2018: _TokenType_name[321:339],
2019: _TokenType_name[339:359],
2020: _TokenType_name[359:376],
3000: _TokenType_name[376:383],
3001: _TokenType_name[383:394],
3100: _TokenType_name[394:407],
3101: _TokenType_name[407:425],
3102: _TokenType_name[425:446],
3103: _TokenType_name[446:463],
3104: _TokenType_name[463:485],
3105: _TokenType_name[485:501],
3106: _TokenType_name[501:520],
3107: _TokenType_name[520:539],
3108: _TokenType_name[539:559],
3109: _TokenType_name[559:580],
3110: _TokenType_name[580:598],
3111: _TokenType_name[598:616],
3112: _TokenType_name[616:635],
3113: _TokenType_name[635:654],
3114: _TokenType_name[654:671],
3200: _TokenType_name[671:684],
3201: _TokenType_name[684:700],
3202: _TokenType_name[700:718],
3203: _TokenType_name[718:734],
3204: _TokenType_name[734:754],
3205: _TokenType_name[754:778],
3206: _TokenType_name[778:794],
4000: _TokenType_name[794:802],
4001: _TokenType_name[802:814],
5000: _TokenType_name[814:825],
6000: _TokenType_name[825:832],
6001: _TokenType_name[832:847],
6002: _TokenType_name[847:863],
6003: _TokenType_name[863:876],
6004: _TokenType_name[876:890],
6100: _TokenType_name[890:904],
6101: _TokenType_name[904:922],
7000: _TokenType_name[922:929],
7001: _TokenType_name[929:943],
7002: _TokenType_name[943:954],
7003: _TokenType_name[954:966],
7004: _TokenType_name[966:980],
7005: _TokenType_name[980:995],
7006: _TokenType_name[995:1008],
7007: _TokenType_name[1008:1021],
7008: _TokenType_name[1021:1034],
7009: _TokenType_name[1034:1051],
7010: _TokenType_name[1051:1067],
7011: _TokenType_name[1067:1083],
8000: _TokenType_name[1083:1087],
8001: _TokenType_name[1087:1101],
}
func (i TokenType) String() string {
if str, ok := _TokenType_map[i]; ok {
return str
}
return fmt.Sprintf("TokenType(%d)", i)
}