mirror of
https://github.com/cmur2/joe-syntax.git
synced 2024-12-22 02:54:23 +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
|
=Escape bold cyan
|
||||||
=Bad bold red
|
=Bad bold red
|
||||||
|
|
||||||
=BadSpace inverse red
|
=RecipeCont bold cyan
|
||||||
=Variable blue
|
=TargetPhony yellow
|
||||||
=Target fg_310 # brown
|
=TargetOther fg_310 # brown
|
||||||
=TargetRest
|
=TargetRest
|
||||||
|
|
||||||
:line_start Idle
|
:line_start Idle
|
||||||
* idle noeat
|
* idle noeat
|
||||||
" " bad_space recolor=-1
|
|
||||||
"#" line_comment 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 Idle
|
||||||
* idle
|
* idle
|
||||||
@ -31,8 +31,23 @@
|
|||||||
* substitute
|
* substitute
|
||||||
")" idle
|
")" idle
|
||||||
|
|
||||||
:bad_space BadSpace
|
:recipe Idle
|
||||||
* line_start noeat
|
* 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 Comment
|
||||||
* line_comment
|
* line_comment
|
||||||
@ -40,17 +55,18 @@
|
|||||||
"BFHNTX" line_comment noeat call=.comment_todo()
|
"BFHNTX" line_comment noeat call=.comment_todo()
|
||||||
"\n" line_start
|
"\n" line_start
|
||||||
|
|
||||||
:maybe_var_or_target Idle
|
:maybe_target Idle
|
||||||
* idle noeat
|
* idle noeat
|
||||||
"a-zA-Z_-" maybe_var_or_target
|
":" target_other noeat recolormark strings
|
||||||
"=" variable recolormark
|
".PHONY" target_phony
|
||||||
":" target noeat recolormark
|
done
|
||||||
|
"a-zA-Z._-" maybe_target
|
||||||
|
|
||||||
:variable Variable
|
:target_phony TargetPhony
|
||||||
* idle noeat
|
* target_rest noeat
|
||||||
|
|
||||||
:target Target
|
:target_other TargetOther
|
||||||
* target_rest
|
* target_rest noeat
|
||||||
|
|
||||||
:target_rest TargetRest
|
:target_rest TargetRest
|
||||||
* target_rest
|
* target_rest
|
||||||
|
Loading…
Reference in New Issue
Block a user