package Ġcom . gmail . blue box ware . lib gdx plugin . file types . skin . highlight ing Ċ Ċ import Ġcom . gmail . blue box ware . lib gdx plugin . file types . skin . Skin Element Types Ċ import Ġcom . gmail . blue box ware . lib gdx plugin . file types . skin . Skin Lexer Ċ import Ġcom . intellij . json . highlight ing . Json Syntax Highlight er Factory .* Ċ import Ġcom . intellij . lexer . Layer ed Lexer Ċ import Ġcom . intellij . lexer . Lexer Ċ import Ġcom . intellij . lexer . StringLiteral Lexer Ċ import Ġcom . intellij . openapi . editor . Default Language Highlight er Colors Ċ import Ġcom . intellij . openapi . editor . Highlight er Colors Ċ import Ġcom . intellij . openapi . editor . colors . Text Attributes Key Ċ import Ġcom . intellij . openapi . file Types . Syntax Highlight er Base Ċ import Ġcom . intellij . openapi . file Types . Syntax Highlight er Factory Ċ import Ġcom . intellij . openapi . project . Project Ċ import Ġcom . intellij . openapi . vfs . Virtual File Ċ import Ġcom . intellij . psi . String Esc apes Token Types Ċ import Ġcom . intellij . psi . TokenType Ċ import Ġcom . intellij . psi . tree . I ElementType Ċ Ċ /* Ċ Ġ* ĠCopyright Ġ 2 0 1 6 ĠBlue ĠBox ĠW are Ċ Ġ* Ċ Ġ* ĠLicensed Ġunder Ġthe ĠApache ĠLicense , ĠVersion Ġ 2 . 0 Ġ( the Ġ" License "); Ċ Ġ* Ġyou Ġmay Ġnot Ġuse Ġthis Ġfile Ġexcept Ġin Ġcompliance Ġwith Ġthe ĠLicense . Ċ Ġ* ĠYou Ġmay Ġobtain Ġa Ġcopy Ġof Ġthe ĠLicense Ġat Ċ Ġ* Ċ Ġ* Ġhttp :// www . apache . org / licenses / LICENSE - 2 . 0 Ċ Ġ* Ċ Ġ* ĠUnless Ġrequired Ġby Ġapplicable Ġlaw Ġor Ġagreed Ġto Ġin Ġwriting , Ġsoftware Ċ Ġ* Ġdistributed Ġunder Ġthe ĠLicense Ġis Ġdistributed Ġon Ġan Ġ" AS ĠIS " ĠBASIS , Ċ Ġ* ĠWITHOUT ĠWARRANTIES ĠOR ĠCONDITIONS ĠOF ĠANY ĠKIND , Ġeither Ġexpress Ġor Ġimplied . Ċ Ġ* ĠSee Ġthe ĠLicense Ġfor Ġthe Ġspecific Ġlanguage Ġgoverning Ġpermissions Ġand Ċ Ġ* Ġlimitations Ġunder Ġthe ĠLicense . Ċ Ġ*/ Ċ class ĠSk in Syntax Highlight er Factory : ĠSyntax Highlight er Factory () Ġ{ ĊĊĠ Ġcompanion Ġobject Ġ{ ĊĠĠĠ Ġval ĠSK IN _ BRACK ETS Ġ= ĠText Attributes Key . createText Attributes Key (" SK IN . BRACK ETS ", ĠJSON _ BRACK ETS ) ĊĠĠĠ Ġval ĠSK IN _ BR ACES Ġ= ĠText Attributes Key . createText Attributes Key (" SK IN . BR ACES ", ĠJSON _ BR ACES ) ĊĠĠĠ Ġval ĠSK IN _ COMMA Ġ= ĠText Attributes Key . createText Attributes Key (" SK IN . COMMA ", ĠJSON _ COMMA ) ĊĠĠĠ Ġval ĠSK IN _ COL ON Ġ= ĠText Attributes Key . createText Attributes Key (" SK IN . COL ON ", ĠJSON _ COL ON ) ĊĠĠĠ Ġval ĠSK IN _ NUMBER Ġ= ĠText Attributes Key . createText Attributes Key (" SK IN . NUMBER ", ĠJSON _ NUMBER ) ĊĠĠĠ Ġval ĠSK IN _ STRING Ġ= ĠText Attributes Key . createText Attributes Key (" SK IN . STRING ", ĠJSON _ STRING ) ĊĠĠĠ Ġval ĠSK IN _ KEYWORD Ġ= ĠText Attributes Key . createText Attributes Key (" SK IN . KEYWORD ", ĠJSON _ KEYWORD ) ĊĠĠĠ Ġval ĠSK IN _ LINE _ COMMENT Ġ= ĠText Attributes Key . createText Attributes Key (" SK IN . LINE _ COMMENT ", ĠJSON _ LINE _ COMMENT ) ĊĠĠĠ Ġval ĠSK IN _ BLOCK _ COMMENT Ġ= ĠText Attributes Key . createText Attributes Key (" SK IN . BLOCK _ COMMENT ", ĠJSON _ BLOCK _ COMMENT ) ĊĊĠĠĠ Ġval ĠSK IN _ CLASS _ NAME Ġ= ĠText Attributes Key . createText Attributes Key (" SK IN . CLASS NAME ", ĠJSON _ KEYWORD ) ĊĠĠĠ Ġval ĠSK IN _ RESOURCE _ NAME Ġ= ĠText Attributes Key . createText Attributes Key (" SK IN . RE SO UR C ENAME ", ĠJSON _ IDENTIFIER ) ĊĊĠĠĠ Ġval ĠSK IN _ PROPERTY _ NAME Ġ= ĠText Attributes Key . createText Attributes Key (" SK IN . PROPERTY _ NAME ", ĠJSON _ PROPERTY _ KEY ) ĊĠĠĠ Ġval ĠSK IN _ PARENT _ PROPERTY Ġ= ĊĠĠĠĠĠĠĠĠĠĠĠ ĠText Attributes Key . createText Attributes Key (" SK IN . PARENT _ PROPERTY ", ĠDefault Language Highlight er Colors . KEYWORD ) ĊĊĠĠĠ Ġval ĠSK IN _ VALID _ ESCAPE Ġ= ĠText Attributes Key . createText Attributes Key (" SK IN . VALID _ ESCAPE ", ĠJSON _ VALID _ ESCAPE ) ĊĠĠĠ Ġval ĠSK IN _ INVALID _ ESCAPE Ġ= ĠText Attributes Key . createText Attributes Key (" SK IN . INVALID _ ESCAPE ", ĠJSON _ INVALID _ ESCAPE ) ĊĊĠ Ġ} ĊĊĠ Ġoverride Ġfun Ġget Syntax Highlight er ( project : ĠProject ?, Ġvirtual File : ĠVirtual File ?) Ġ= ĠSk in Highlight er () ĊĊĠ Ġclass ĠSk in Highlight er : ĠSyntax Highlight er Base () Ġ{ ĊĊĠĠĠ Ġcompanion Ġobject Ġ{ ĊĠĠĠĠĠ Ġval Ġattributes Ġ= Ġmap Of ( ĊĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠSk in Element Types . L _ CURL Y Ġto ĠSK IN _ BR ACES , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠSk in Element Types . R _ CURL Y Ġto ĠSK IN _ BR ACES , ĊĊĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠSk in Element Types . L _ BRACK ET Ġto ĠSK IN _ BRACK ETS , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠSk in Element Types . R _ BRACK ET Ġto ĠSK IN _ BRACK ETS , ĊĊĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠSk in Element Types . COMMA Ġto ĠSK IN _ COMMA , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠSk in Element Types . COL ON Ġto ĠSK IN _ COL ON , ĊĊĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠSk in Element Types . DOUBLE _ QUOT ED _ STRING Ġto ĠSK IN _ STRING , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠSk in Element Types . UN QUOT ED _ STRING Ġto ĠSK IN _ STRING , ĊĊĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠSk in Element Types . LINE _ COMMENT Ġto ĠSK IN _ LINE _ COMMENT , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠSk in Element Types . BLOCK _ COMMENT Ġto ĠSK IN _ BLOCK _ COMMENT , ĊĊĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠSk in Element Types . PROPERTY _ NAME Ġto ĠSK IN _ PROPERTY _ NAME , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠSk in Element Types . RESOURCE _ NAME Ġto ĠSK IN _ RESOURCE _ NAME , ĊĊĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠTokenType . BAD _ CHARACTER Ġto ĠHighlight er Colors . BAD _ CHARACTER , ĊĊĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠString Esc apes Token Types . VALID _ STRING _ ESCAPE _ TOKEN Ġto ĠSK IN _ VALID _ ESCAPE , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠString Esc apes Token Types . INVALID _ CHARACTER _ ESCAPE _ TOKEN Ġto ĠSK IN _ INVALID _ ESCAPE , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠString Esc apes Token Types . INVALID _ UNICODE _ ESCAPE _ TOKEN Ġto ĠSK IN _ INVALID _ ESCAPE ĊĠĠĠĠĠ Ġ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun ĠgetToken Highlight s ( token Type : ĠI ElementType ?): ĠArray < Text Attributes Key > Ġ{ ĊĠĠĠĠĠ Ġreturn Ġpack ( attributes [ token Type ]) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġget Highlighting Lexer (): ĠLex er Ġ{ ĊĠĠĠĠĠ Ġval Ġlayer ed Lexer Ġ= ĠLayer ed Lexer ( Skin Lexer ()) ĊĠĠĠĠĠ Ġlayer ed Lexer . register Self Stopping Layer ( ĊĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠString Literal Lexer (' \" ', ĠSk in Element Types . DOUBLE _ QUOT ED _ STRING , Ġfalse , Ġ"/", Ġfalse , Ġfalse ), ĊĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠarrayOf ( Skin Element Types . DOUBLE _ QUOT ED _ STRING ), ĠI ElementType . EMPTY _ ARRAY ĊĠĠĠĠĠ Ġ) ĊĠĠĠĠĠ Ġreturn Ġlayer ed Lexer ĊĠĠĠ Ġ} ĊĠ Ġ} Ċ }