;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; ; Author : $Author$ ; Created By : Jon Green ; Created : Wed Nov 8 21:32:44 2006 ; Last Modified : <061109.1905> ; ; Description : Override the Java template. ; - Extend JavaDoc to highlight the parameter name not just the keyword. ; ; Notes : Copied and extended from hkjava.emf ; ; Copyright (c) 2006 Jon Green. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; !if &and &sin "h" .fhook-java.setup &band .hilight.flags 0x02 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; Extend Javadoc highlighting ; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; !if ¬ &exi .hilight.pjavadoc set-variable .hilight.pjavadoc &pinc .hilight.next 1 !endif ; ; Special hilighting for a JavaDoc parameter - branch from the JavaDoc ; space into scheme for the parameter. Note that @param is defined after ; the generic '@' definitions. ; ; Special for @param, @throws, @exception and @see hilight .hilight.javadoc 0x80 "@param" .hilight.pjavadoc .scheme.keyword hilight .hilight.javadoc 0x80 "@throws" .hilight.pjavadoc .scheme.keyword hilight .hilight.javadoc 0x80 "@exception" .hilight.pjavadoc .scheme.keyword hilight .hilight.javadoc 0x80 "@see" .hilight.pjavadoc .scheme.keyword ; JavaDoc parameter hilighting space. 0 hilight .hilight.pjavadoc 2 50 .scheme.error ; Hilight the next word and finish. hilight .hilight.pjavadoc 0x80 "[#a-zA-Z][\\.#a-zA-Z0-9()]*" .hilight.javadoc .scheme.prepro ; We must return to C when we see the close of comment "*/" hilight .hilight.pjavadoc 0x80 "\\*/" .hilight.java .scheme.error !endif