/*    */ package org.ui.editors.map;
/*    */ 
/*    */ import java.awt.Color;
/*    */ import javax.swing.JTextPane;
/*    */ import org.ui.syntaxes.CharAttrib;
/*    */ import org.ui.syntaxes.SyntaxHighlighter;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ public class MapTextHighlighter
/*    */   extends SyntaxHighlighter
/*    */ {
/*    */   private static final String WALL_REGEX = "[#]";
/*    */   private static final String BOT_REGEX = "[<^>vV]";
/*    */   private static final String COIN_REGEX = "[€$]";
/*    */   private static final String TAG_REGEX = "\\b|@date|@author|@version|@name\\b";
/*    */   private static final String DATA_REGEX = "@[^\\n]*";
/*    */   private static final String COMMENT_REGEX = "//[^\\n]*";
/*    */   
/*    */   public MapTextHighlighter(JTextPane textPane) {
/* 28 */     super(textPane, 1.0F, 24);
/*    */ 
/*    */ 
/*    */     
/* 32 */     createHighlightPattern("[#]", new CharAttrib(false, false, Color.DARK_GRAY));
/*    */     
/* 34 */     createHighlightPattern("[<^>vV]", new CharAttrib(false, true, Color.RED));
/*    */     
/* 36 */     createHighlightPattern("[€$]", new CharAttrib(true, false, Color.ORANGE));
/*    */     
/* 38 */     createHighlightPattern("\\b|@date|@author|@version|@name\\b", new CharAttrib(true, false, Color.GRAY));
/*    */     
/* 40 */     createHighlightPattern("@[^\\n]*", new CharAttrib(true, false, Color.GRAY));
/*    */     
/* 42 */     createHighlightPattern("//[^\\n]*", new CharAttrib(true, false, Color.LIGHT_GRAY));
/*    */   }
/*    */ }


/* Location:              /home/teridax/Projects/Gytebot/GYTEBOT.jar!/org/ui/editors/map/MapTextHighlighter.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */