# JOE syntax highlight file for Ant's build scripts # http://ant.apache.org/ # using the XML highlighter with better colors since # ant scripts heavily rely on the tags (blue is a bad color here) # instead of their contents # Improved XML highlighter by: Brian Candler =Idle =Bad red bold =Tag bold =Attr =Constant cyan =Escape bold cyan =EntityRef magenta =Decl cyan =CommentStart green =CommentBody green =CommentEnd green =PIStart yellow bold =PIBody yellow =PIEnd yellow bold =CdataStart blue bold =CdataBody bold =CdataEnd blue bold =Keytag bold magenta #fg_310 # brown # http://www.w3.org/TR/2004/REC-xml-20040204/ # # NOTE: For UNICODE compatibility, the ranges # "A-Za-z_:" -- first character of Name # "A-Za-z0-9._:-" -- subsequent characters of Name # ought to be replaced with some appropriate Unicode character classes :content Idle * content "<" tag recolor=-1 "&" entityref recolor=-1 # > is allowed # ">" error noeat recolor=-1 # In several contexts a space is an error, and since a coloured space is # not visible, we colour the next non-space character as well. :error Bad * error_visible noeat recolor=-1 " \t\r\n" error :error_visible Bad * content # Matched: & :entityref EntityRef * error noeat recolor=-1 "A-Za-z0-9._:-" entityref "#" entityref ";" content # Matched: < :tag Tag * error noeat recolor=-1 "/" end_tag "A-Za-z_:" start_or_empty_tag buffer "?" pi_start recolor=-2 "!" decl recolor=-2 buffer # Matched: " content :end_tag2_sp Idle * end_tag3 noeat :end_tag3 Tag * error noeat recolor=-1 " \t\r\n" end_tag3_sp recolor=-1 ">" content :end_tag3_sp Idle * end_tag_3 noeat # Matched: " content :start_or_empty_tag_sp Idle * tag_space noeat # Matched: " content # Matched: " close_tag recolor=-1 :tag_space_sp Idle * tag_space noeat # Matched: " error noeat recolor=-1 :string_sq Constant * string_sq "<" error noeat recolor=-1 "&" char_sq recolor=-1 "'" endstring "$" string_sq call=.maybe_antvar() # ">" error noeat recolor=-1 :char_dq EntityRef * error noeat recolor=-1 "A-Za-z0-9._:-" char_dq "#" char_dq ";" string_dq :char_sq EntityRef * error noeat recolor=-1 "A-Za-z0-9._:-" char_sq "#" char_sq ";" string_sq .subr maybe_antvar # initial state :maybe_antvar Constant * NULL return "{" antvar recolor=-2 :antvar Escape * antvar "}" NULL return .end # Matched: " close_tag recolor=-1 # This state is just to recolor the final ">" at the end of :close_tag Tag * content noeat # Matched: " pi_end recolor=-2 :pi_end PIEnd * content noeat recolor=-1 # Matched: " content # We allow one level of <...> nesting within declarations :decl_nest Decl * decl_nest ">" decl # Matched: