From b4d40279811b7642f47b93ac4d17f560dd7dd104 Mon Sep 17 00:00:00 2001 From: Christian Nicolai Date: Wed, 10 Aug 2011 10:27:00 +0200 Subject: [PATCH] Pure line-based approach is too complex --- asm_att.jsf | 90 ----------------------------------------------------- 1 file changed, 90 deletions(-) delete mode 100644 asm_att.jsf diff --git a/asm_att.jsf b/asm_att.jsf deleted file mode 100644 index 2095e96..0000000 --- a/asm_att.jsf +++ /dev/null @@ -1,90 +0,0 @@ -# JOE syntax highlight file for assembly language (AT&T syntax) - -=Idle -=Bad bold red -=Comment green -=Constant cyan -=Escape bold cyan - -=Directive red -=Label magenta -=Instruction bold -=Register yellow - -:line_start Idle - * statement noeat - "\n" line_start - " \t\r" line_start # leading spaces - -:line_comment Comment - * line_comment - "\n" line_start - -:statement Idle - * error - "a-zA-Z_" maybe_label_i mark - "." maybe_label_d mark - " \t" statement - "\n" line_start - ";#" line_comment recolor=-1 - -:maybe_label_d Idle - # eaten an directive (leading .) since it has no : at end - * directive noeat recolormark - ":" end_label noeat recolormark - "a-zA-Z_0-9" maybe_label_d - -:maybe_label_i Idle - # eaten an instruction since it has no : at end - * instr noeat recolormark - ":" end_label noeat recolormark - "a-zA-Z_0-9" maybe_label_i - -:end_label Label - * statement noeat - ":" end_label - -# two possible "key symbols": directive or instruction - -:directive Directive - * directive - " \t" d_rest - "\n" line_start - ";#" line_comment recolor=-1 - -:d_rest Idle - * d_rest - "\n" line_start - ";#" line_comment recolor=-1 - -:instr Instruction - * instr - " \t" operands - "\n" line_start - ";#" line_comment recolor=-1 - -:operands Idle - * normal_op - ", \t" operands - "$" number_op - "%" register_op - "\n" line_start - ";#" line_comment recolor=-1 - -:normal_op Idle - * normal_op - ", \t" operands noeat - "\n" line_start - ";#" line_comment recolor=-1 - -:number_op Constant - * number_op - ", \t" operands noeat - "\n" line_start - ";#" line_comment recolor=-1 - -:register_op Register - * register_op - ", \t" operands noeat - "\n" line_start - ";#" line_comment recolor=-1