1
0
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:
cn
2015-02-18 14:53:07 +01:00
parent 255766b9b5
commit 1bdac950b3
6 changed files with 7 additions and 143 deletions

View File

@ -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