mirror of
https://github.com/cmur2/joe-syntax.git
synced 2024-12-21 16:54:23 +01:00
Enable standalone CSS highlighter
This commit is contained in:
parent
9716bb9cc9
commit
fac5b4bee6
108
css.jsf
108
css.jsf
@ -1,23 +1,21 @@
|
|||||||
# JOE syntax highlight file for CSS
|
# JOE syntax highlight file for CSS
|
||||||
# by Eric Lin
|
# by Eric Lin
|
||||||
|
|
||||||
-
|
|
||||||
|
|
||||||
# Define colors
|
# Define colors
|
||||||
|
|
||||||
=Idle
|
=Idle
|
||||||
=Comment green
|
=Comment green
|
||||||
=Class cyan
|
=Class cyan
|
||||||
=Id red
|
=Id red
|
||||||
=Tag magenta
|
=Tag magenta
|
||||||
=Keyword bold
|
=Keyword bold
|
||||||
=HTML
|
=HTML
|
||||||
|
|
||||||
# from html.jsf to support <?php?>
|
# from html.jsf to support <?php?>
|
||||||
=TagEdge green
|
=TagEdge green
|
||||||
|
|
||||||
:begin Idle
|
:begin Idle
|
||||||
* begin noeat call=.css()
|
* begin noeat call=.css()
|
||||||
|
|
||||||
#
|
#
|
||||||
# For <style> in html
|
# For <style> in html
|
||||||
@ -26,27 +24,27 @@
|
|||||||
.subr css
|
.subr css
|
||||||
|
|
||||||
:reset HTML
|
:reset HTML
|
||||||
* reset
|
* reset
|
||||||
"<" maybe_done recolor=-1
|
"<" maybe_done recolor=-1
|
||||||
"/" slash
|
"/" slash
|
||||||
"#" id_block recolor=-1
|
"#" id_block recolor=-1
|
||||||
"." class_block recolor=-1
|
"." class_block recolor=-1
|
||||||
"a-zA-Z" tag_block recolor=-1
|
"a-zA-Z" tag_block recolor=-1
|
||||||
|
|
||||||
:maybe_done TagEdge
|
:maybe_done TagEdge
|
||||||
* reset_html noeat
|
* reset_html noeat
|
||||||
"/" reset noeat return recolor=-2
|
"/" reset noeat return recolor=-2
|
||||||
.ifdef php
|
.ifdef php
|
||||||
"?%" rtn_php call=php.php()
|
"?%" rtn_php call=php.php()
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
# fix needed to produce similar output without php
|
# fix needed to produce similar output without php
|
||||||
:reset_html HTML
|
:reset_html HTML
|
||||||
* reset noeat recolor=-2
|
* reset noeat recolor=-2
|
||||||
|
|
||||||
# this state allows php and perl to recolor the ?> %> or &> properly.
|
# this state allows php and perl to recolor the ?> %> or &> properly.
|
||||||
:rtn_php TagEdge
|
:rtn_php TagEdge
|
||||||
* reset noeat
|
* reset noeat
|
||||||
|
|
||||||
:slash Idle
|
:slash Idle
|
||||||
* reset noeat
|
* reset noeat
|
||||||
@ -62,55 +60,55 @@
|
|||||||
"*" maybe_end_comment
|
"*" maybe_end_comment
|
||||||
|
|
||||||
:id_block Id
|
:id_block Id
|
||||||
* id_block
|
* id_block
|
||||||
" " id_block_reset
|
" " id_block_reset
|
||||||
"{" style_block recolor=-1
|
"{" style_block recolor=-1
|
||||||
|
|
||||||
:id_block_reset Idle
|
:id_block_reset Idle
|
||||||
* id_block
|
* id_block
|
||||||
"a-zA-Z" tag_block recolor=-1
|
"a-zA-Z" tag_block recolor=-1
|
||||||
"." class_block recolor=-1
|
"." class_block recolor=-1
|
||||||
"#" id_block recolor=-1
|
"#" id_block recolor=-1
|
||||||
"{" style_block recolor=-1
|
"{" style_block recolor=-1
|
||||||
|
|
||||||
:class_block Class
|
:class_block Class
|
||||||
* class_block
|
* class_block
|
||||||
" " tag_block
|
" " tag_block
|
||||||
"{" style_block recolor=-1
|
"{" style_block recolor=-1
|
||||||
|
|
||||||
:tag_block Tag
|
:tag_block Tag
|
||||||
* tag_block
|
* tag_block
|
||||||
"{" style_block recolor=-1
|
"{" style_block recolor=-1
|
||||||
"," tag_sep recolor=-1
|
"," tag_sep recolor=-1
|
||||||
|
|
||||||
:tag_sep Idle
|
:tag_sep Idle
|
||||||
* tag_block recolor=-1
|
* tag_block recolor=-1
|
||||||
|
|
||||||
:style_block Idle
|
:style_block Idle
|
||||||
* style_block
|
* style_block
|
||||||
"}" reset
|
"}" reset
|
||||||
"/" maybe_style_comment
|
"/" maybe_style_comment
|
||||||
"a-zA-Z-" style_word recolor=-1
|
"a-zA-Z-" style_word recolor=-1
|
||||||
|
|
||||||
:style_word Keyword
|
:style_word Keyword
|
||||||
* style_word
|
* style_word
|
||||||
":" style_value recolor=-1
|
":" style_value recolor=-1
|
||||||
|
|
||||||
:style_value Idle
|
:style_value Idle
|
||||||
* style_value
|
* style_value
|
||||||
";" style_block
|
";" style_block
|
||||||
|
|
||||||
:maybe_style_comment Idle
|
:maybe_style_comment Idle
|
||||||
* style_block recolor=-1
|
* style_block recolor=-1
|
||||||
"*" style_comment recolor=-2
|
"*" style_comment recolor=-2
|
||||||
|
|
||||||
:style_comment Comment
|
:style_comment Comment
|
||||||
* style_comment
|
* style_comment
|
||||||
"*" maybe_end_style_comment
|
"*" maybe_end_style_comment
|
||||||
|
|
||||||
:maybe_end_style_comment Comment
|
|
||||||
* comment
|
|
||||||
"/" style_block
|
|
||||||
"*" maybe_end_style_comment
|
|
||||||
|
|
||||||
|
:maybe_end_style_comment Comment
|
||||||
|
* comment
|
||||||
|
"/" style_block
|
||||||
|
"*" maybe_end_style_comment
|
||||||
|
|
||||||
.end
|
.end
|
||||||
|
Loading…
Reference in New Issue
Block a user