New comment todo labels for java

This commit is contained in:
Christian Nicolai 2011-08-02 18:53:07 +02:00
parent acee020264
commit 69bdfbbf9b
1 changed files with 30 additions and 1 deletions

View File

@ -5,6 +5,7 @@
=Idle =Idle
=Comment green =Comment green
=CommentLabel bold green
=Constant cyan =Constant cyan
=Escape bold cyan =Escape bold cyan
=Type bold =Type bold
@ -60,15 +61,19 @@
:comment Comment :comment Comment
* comment * comment
# might be TODO label
"BFHNTX" comment noeat call=.comment_todo()
"*" maybe_end_comment "*" maybe_end_comment
:maybe_end_comment Comment :maybe_end_comment Comment
* comment * comment noeat
"/" idle "/" idle
"*" maybe_end_comment "*" maybe_end_comment
:line_comment Comment :line_comment Comment
* line_comment * line_comment
# might be TODO label
"BFHNTX" line_comment noeat call=.comment_todo()
"\n" idle "\n" idle
:first_digit Constant :first_digit Constant
@ -252,3 +257,27 @@ done
* idle noeat * idle noeat
.end .end
.subr comment_todo
# initial state
:comment_todo_init Comment
* comment_todo_guess buffer
# highlight common TODO labels
:comment_todo_guess Comment
* comment_todo_unknown noeat strings
"BUG" comment_todo
"FIXME" comment_todo
"HACK" comment_todo
"NOTE" comment_todo
"TODO" comment_todo
"XXX" comment_todo
done
"A-Z" comment_todo_guess
:comment_todo_unknown Comment
* NULL noeat return
:comment_todo CommentLabel
* NULL noeat return
.end