1
0
mirror of https://github.com/cmur2/joe-syntax.git synced 2024-12-22 02:54:23 +01:00

Method hilite for Java, prolog.jsf tabs corrected

This commit is contained in:
Christian Nicolai 2011-08-01 20:48:33 +02:00
parent 82ec704ab2
commit c12712df6c
2 changed files with 39 additions and 31 deletions

View File

@ -4,8 +4,6 @@
# improve escape parsing # improve escape parsing
=Idle =Idle
=Preproc blue
=Define bold blue
=Comment green =Comment green
=Constant cyan =Constant cyan
=Escape bold cyan =Escape bold cyan
@ -16,6 +14,8 @@
=Brace magenta =Brace magenta
=Control =Control
=Methods
:begin Idle :begin Idle
* begin noeat call=.java() * begin noeat call=.java()
@ -30,28 +30,28 @@
"\n" idle "\n" idle
"/" slash "/" slash
"0" first_digit recolor=-1 "0" first_digit recolor=-1
"1-9" decimal recolor=-1 "1-9" decimal recolor=-1
"." maybe_float "." maybe_float
"\"" string recolor=-1 "\"" string recolor=-1
"'" char recolor=-1 "'" char recolor=-1
"a-zA-Z_" ident buffer "a-zA-Z_" ident mark buffer
"{}" brace recolor=-1 "{}" brace recolor=-1
.ifdef script .ifdef script
",:;=()>[]*&|!~+\-%^" control recolor=-1 ",:;=()>[]*&|!~+\-%^" control recolor=-1
"<" maybe_done "<" maybe_done
.else .else
",:;=()><[]*&|!~+\-%^" control recolor=-1 ",:;=()><[]*&|!~+\-%^" control recolor=-1
.endif .endif
:maybe_done Control :maybe_done Control
* idle noeat * idle noeat
"/" idle noeat return recolor=-2 "/" idle noeat return recolor=-2
:brace Brace :brace Brace
* idle noeat * idle noeat
:control Control :control Control
* idle noeat * idle noeat
:slash Idle :slash Idle
* idle noeat * idle noeat
@ -72,7 +72,7 @@
"\n" idle "\n" idle
:first_digit Constant :first_digit Constant
* idle noeat * idle noeat
"xX" hex "xX" hex
"." float "." float
"eE" epart "eE" epart
@ -80,39 +80,39 @@
"89" bad_number recolor=-1 "89" bad_number recolor=-1
:bad_number Bad :bad_number Bad
* idle noeat * idle noeat
"0-9" bad_number "0-9" bad_number
:octal Constant :octal Constant
* idle noeat * idle noeat
"0-7" octal "0-7" octal
"89" bad_number recolor=-1 "89" bad_number recolor=-1
:hex Constant :hex Constant
* idle noeat * idle noeat
"0-9A-Fa-f" hex "0-9A-Fa-f" hex
:decimal Constant :decimal Constant
* idle noeat * idle noeat
"0-9" decimal "0-9" decimal
"eE" epart "eE" epart
"." float "." float
:maybe_float Constant :maybe_float Constant
* idle recolor=-2 noeat * idle recolor=-2 noeat
"0-9" float recolor=-2 "0-9" float recolor=-2
:float Constant :float Constant
* idle noeat * idle noeat
"eE" epart "eE" epart
"0-9" float "0-9" float
:epart Constant :epart Constant
* idle noeat * idle noeat
"0-9+\-" enum "0-9+\-" enum
:enum Constant :enum Constant
* idle noeat * idle noeat
"0-9" enum "0-9" enum
:string Constant :string Constant
@ -177,7 +177,7 @@
"0-7" char "0-7" char
:ident Idle :ident Idle
* idle noeat strings * ident_end noeat markend strings
"abstract" kw "abstract" kw
"boolean" type "boolean" type
"break" kw "break" kw
@ -232,15 +232,23 @@ done
"a-zA-Z0-9_" ident "a-zA-Z0-9_" ident
:type Type :type Type
* idle noeat * idle noeat
:kw Keyword :kw Keyword
* idle noeat * idle noeat
:lit Constant :lit Constant
* idle noeat * idle noeat
:operator Operator :operator Operator
* idle noeat * idle noeat
:ident_end Idle
* idle noeat
" " ident_end
"(" method_end recolormark
:method_end Methods
* idle noeat
.end .end

View File

@ -1,15 +1,15 @@
# JOE syntax highlight file for Prolog # JOE syntax highlight file for Prolog
=Idle =Idle
=Comment green =Comment green
=Constant cyan =Constant cyan
=Escape bold cyan =Escape bold cyan
=Variable cyan =Variable cyan
=Keyword bold =Keyword bold
=Bad bold red =Bad bold red
=Brace =Brace
=Predicate red =Predicate red
:idle Idle :idle Idle
* idle * idle