1
0
mirror of https://github.com/cmur2/joe-syntax.git synced 2024-11-18 20:56:17 +01:00
joe-syntax/md.jsf

135 lines
1.8 KiB
Plaintext
Raw Normal View History

# JOE syntax highlight file for Markdown
# And yes, this *is* a joke :p
# bold parsing is not that perfect since this works: **bold__
=Idle
=Tag green
=Escape bold
=Bad bold red
2011-08-01 19:35:32 +02:00
=Bold bold
2014-03-01 21:59:59 +01:00
=Headline bold yellow
=Quote green
=Code green
2014-03-01 21:59:59 +01:00
=List yellow
=LinkDesc green
=Link blue
=Rule inverse
:line_start Idle
* idle noeat
"#" headline_prefix recolor=-1
">" quote recolor=-1
" " maybe_code1
"\t" code
2014-03-01 21:59:59 +01:00
"-*" maybe_list
:idle Idle
* idle
"\n" line_start
2012-07-09 15:53:52 +02:00
"<" tag recolor=-1
2011-08-01 19:35:32 +02:00
"\\" escape recolor=-1
"*_" maybe_bold1
2014-03-01 21:59:59 +01:00
"[" maybe_link_desc1
:headline_prefix Idle
* headline
"#" headline_prefix
:headline Headline
* headline
"\n" line_start
:quote Quote
* quote
"\n" line_start
:maybe_code1 Idle
* idle
" " maybe_code2
:maybe_code2 Idle
* idle
" " maybe_code3
:maybe_code3 Idle
* idle
" " code recolor=-4
:code Code
* code
"\n" line_start
2014-03-01 21:59:59 +01:00
:maybe_list Idle
* idle
" " list
"-*" maybe_rule1
:list List
* list
"\n" line_start
:maybe_rule1 Idle
* idle
"-*" rule recolor=-3
:rule Rule
* rule
"\n" line_start
2012-07-09 15:53:52 +02:00
:tag Tag
* idle
"a-z0-9 /" tag
">" idle
2011-08-01 19:35:32 +02:00
# do escaping of *_ and so on
:escape Escape
* idle
:maybe_bold1 Idle
2011-08-01 11:21:59 +02:00
* idle noeat
"*_" bold recolor=-2
:bold Bold
* bold
"\n" line_start # end if we reach newline during bold
"*_" maybe_end_bold
:maybe_end_bold Bold
* bold
"*_" end_bold
:end_bold Bold
2011-08-01 11:21:59 +02:00
* idle noeat
2014-03-01 21:59:59 +01:00
:maybe_link_desc1 Idle
* maybe_link_desc mark
:maybe_link_desc Idle
* maybe_link_desc
"]" maybe_end_link_desc markend
:maybe_end_link_desc Idle
* idle
"(" link_inline1 recolormark
"[" link_ref1 recolormark
:link_inline1 LinkDesc
* link_inline noeat
:link_inline Link
* link_inline
")" link_end noeat
:link_ref1 LinkDesc
* link_ref noeat
:link_ref Link
* link_ref
"]" link_end noeat
:link_end Idle
* idle