mirror of
https://github.com/cmur2/joe-syntax.git
synced 2024-12-21 16:54:23 +01:00
Introduce comment label highlighting for TeX
This commit is contained in:
parent
f555e413a9
commit
8bbed067ad
27
tex.jsf
27
tex.jsf
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
=Idle
|
=Idle
|
||||||
=Comment green
|
=Comment green
|
||||||
|
=CommentLabel bold green
|
||||||
=Keyword bold
|
=Keyword bold
|
||||||
=Mathmode cyan
|
=Mathmode cyan
|
||||||
=Brace magenta
|
=Brace magenta
|
||||||
@ -17,6 +18,8 @@
|
|||||||
|
|
||||||
:comment Comment
|
:comment Comment
|
||||||
* comment
|
* comment
|
||||||
|
# might be TODO label
|
||||||
|
"BFHNTX" comment noeat call=.comment_todo()
|
||||||
"\n" idle
|
"\n" idle
|
||||||
|
|
||||||
:math Mathmode
|
:math Mathmode
|
||||||
@ -50,3 +53,27 @@
|
|||||||
|
|
||||||
:math_brace Brace
|
:math_brace Brace
|
||||||
* math noeat
|
* math noeat
|
||||||
|
|
||||||
|
.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
|
||||||
|
Loading…
Reference in New Issue
Block a user