mirror of
https://github.com/cmur2/joe-syntax.git
synced 2024-12-21 06:54:22 +01:00
Improve makefile highlighter
This commit is contained in:
parent
4d940dd75a
commit
854a1893eb
46
makefile.jsf
46
makefile.jsf
@ -7,16 +7,16 @@
|
||||
=Escape bold cyan
|
||||
=Bad bold red
|
||||
|
||||
=BadSpace inverse red
|
||||
=Variable blue
|
||||
=Target fg_310 # brown
|
||||
=RecipeCont bold cyan
|
||||
=TargetPhony yellow
|
||||
=TargetOther fg_310 # brown
|
||||
=TargetRest
|
||||
|
||||
:line_start Idle
|
||||
* idle noeat
|
||||
" " bad_space recolor=-1
|
||||
"#" line_comment recolor=-1
|
||||
"a-zA-Z_" maybe_var_or_target mark
|
||||
"a-zA-Z._" maybe_target mark buffer
|
||||
"\t" recipe
|
||||
|
||||
:idle Idle
|
||||
* idle
|
||||
@ -31,8 +31,23 @@
|
||||
* substitute
|
||||
")" idle
|
||||
|
||||
:bad_space BadSpace
|
||||
* line_start noeat
|
||||
:recipe Idle
|
||||
* recipe
|
||||
"$" maybe_r_substitute
|
||||
"\\" recipe_cont recolor=-1
|
||||
"\n" line_start
|
||||
|
||||
:recipe_cont RecipeCont
|
||||
* recipe noeat
|
||||
"\n" recipe
|
||||
|
||||
:maybe_r_substitute Idle
|
||||
* recipe noeat
|
||||
"(" r_substitute recolor=-2
|
||||
|
||||
:r_substitute Constant
|
||||
* r_substitute
|
||||
")" recipe
|
||||
|
||||
:line_comment Comment
|
||||
* line_comment
|
||||
@ -40,17 +55,18 @@
|
||||
"BFHNTX" line_comment noeat call=.comment_todo()
|
||||
"\n" line_start
|
||||
|
||||
:maybe_var_or_target Idle
|
||||
:maybe_target Idle
|
||||
* idle noeat
|
||||
"a-zA-Z_-" maybe_var_or_target
|
||||
"=" variable recolormark
|
||||
":" target noeat recolormark
|
||||
":" target_other noeat recolormark strings
|
||||
".PHONY" target_phony
|
||||
done
|
||||
"a-zA-Z._-" maybe_target
|
||||
|
||||
:variable Variable
|
||||
* idle noeat
|
||||
:target_phony TargetPhony
|
||||
* target_rest noeat
|
||||
|
||||
:target Target
|
||||
* target_rest
|
||||
:target_other TargetOther
|
||||
* target_rest noeat
|
||||
|
||||
:target_rest TargetRest
|
||||
* target_rest
|
||||
|
Loading…
Reference in New Issue
Block a user