mirror of
https://github.com/cmur2/joe-syntax.git
synced 2025-07-02 08:30:20 +02:00
Pull out comment_todo into separate jsf
Note: Python has a second, special flavor for docstrings - might be a problem.
This commit is contained in:
27
python.jsf
27
python.jsf
@ -6,7 +6,6 @@
|
||||
|
||||
=Idle
|
||||
=Comment green
|
||||
=CommentLabel bold green
|
||||
=Docstring green
|
||||
=DocstringLabel bold green
|
||||
=DocEscape bold cyan
|
||||
@ -40,7 +39,7 @@
|
||||
:comment Comment
|
||||
* comment
|
||||
# might be TODO label
|
||||
"BFHNTX" comment noeat call=.comment_todo()
|
||||
"BFHNTX" comment noeat call=commend_todo.comment_todo()
|
||||
"\n" idle
|
||||
|
||||
:string_sq_1 Constant
|
||||
@ -199,30 +198,6 @@ done
|
||||
* idle noeat
|
||||
"a-zA-Z0-9_" priv_member
|
||||
|
||||
.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
|
||||
|
||||
.subr comment_todo_docstr
|
||||
# initial state
|
||||
:comment_todo_init Docstring
|
||||
|
Reference in New Issue
Block a user