diff --git a/README.md b/README.md index 58378fe..4cba251 100644 --- a/README.md +++ b/README.md @@ -28,16 +28,9 @@ Every .jsf file created and modified exclusively by [me (Christian Nicolai)](htt Files with contributions (or unclear license info): -* [elixir.jsf](https://github.com/cmur2/joe-syntax/blob/master/elixir.jsf) which is created by [Andrew Lisin](https://github.com/avli) under GPL v2 or any later version ([comment](https://github.com/cmur2/joe-syntax/pull/18#issuecomment-78036115)) -* [erlang.jsf](https://github.com/cmur2/joe-syntax/blob/master/erlang.jsf) which is created by [Christian Nicolai](https://github.com/cmur2) and then modified by Jonas Rosling and enhanced with a small tweak from [raev](https://github.com/raev) -* [go.jsf](https://github.com/cmur2/joe-syntax/blob/master/go.jsf) which is entirely contributed by [Daniel Vargas](https://github.com/danielvargas) * [ini.jsf](https://github.com/cmur2/joe-syntax/blob/master/ini.jsf) which is created by [Christian Nicolai](https://github.com/cmur2) with contributions from [Todd Lewis](https://github.com/utoddl) -* [js.jsf](https://github.com/cmur2/joe-syntax/blob/master/js.jsf) which is created by [Christian Nicolai](https://github.com/cmur2) and then modified by [Rebecca Turner](https://github.com/iarna) under GPL v2 or any later version and compatible ISC license ([comment](https://github.com/cmur2/joe-syntax/pull/13#issuecomment-78058267)) * [json.jsf](https://github.com/cmur2/joe-syntax/blob/master/json.jsf) which is entirely contributed by [Rebecca Turner](https://github.com/iarna) under GPL v2 or any later version and compatible ISC license ([comment](https://github.com/cmur2/joe-syntax/pull/14#issuecomment-78058037)) * [lsl.jsf](https://github.com/cmur2/joe-syntax/blob/master/lsl.jsf) which is from [Zai Lynch](https://wiki.secondlife.com/wiki/User:Zai_Lynch) under GPL v1 (delivered by [Rebecca Turner](https://github.com/iarna)) -* [md.jsf](https://github.com/cmur2/joe-syntax/blob/master/md.jsf) which is created by [Christian Nicolai](https://github.com/cmur2) and then modified by Jonas Rosling -* [powershell.jsf](https://github.com/cmur2/joe-syntax/blob/master/powershell.jsf) which is entirely contributed by [Oskar Liljeblad](https://github.com/osklil) under GPL v2 or any later version ([comment](https://github.com/cmur2/joe-syntax/pull/5#issuecomment-76935968)) -* [puppet.jsf](https://github.com/cmur2/joe-syntax/blob/master/puppet.jsf) which is created by [Christian Nicolai](https://github.com/cmur2) and then modified by [Eric Eisenhart](https://github.com/eeisenhart) * [sql.jsf](https://github.com/cmur2/joe-syntax/blob/master/sql.jsf) which is from an "unknown source" (delivered by [Rebecca Turner](https://github.com/iarna)) * [yaml.jsf](https://github.com/cmur2/joe-syntax/blob/master/yaml.jsf) which is created by [Christian Nicolai](https://github.com/cmur2) with bug fixes from [Todd Lewis](https://github.com/utoddl) diff --git a/ant.jsf b/ant.jsf deleted file mode 100644 index 35aa32f..0000000 --- a/ant.jsf +++ /dev/null @@ -1,301 +0,0 @@ -# JOE syntax highlight file for Ant's build scripts - -# http://ant.apache.org/ - -# using the XML highlighter with better colors since -# ant scripts heavily rely on the tags (blue is a bad color here) -# instead of their contents - -# Improved XML highlighter by: Brian Candler - -=Idle -=Bad red bold -=Tag bold -=Attr -=Constant cyan -=Escape bold cyan -=EntityRef magenta -=Decl cyan -=CommentStart green -=CommentBody green -=CommentEnd green -=PIStart yellow bold -=PIBody yellow -=PIEnd yellow bold -=CdataStart blue bold -=CdataBody bold -=CdataEnd blue bold - -=Keytag bold magenta #fg_310 # brown - - -# http://www.w3.org/TR/2004/REC-xml-20040204/ -# -# NOTE: For UNICODE compatibility, the ranges -# "A-Za-z_:" -- first character of Name -# "A-Za-z0-9._:-" -- subsequent characters of Name -# ought to be replaced with some appropriate Unicode character classes - -:content Idle - * content - "<" tag recolor=-1 - "&" entityref recolor=-1 - -# > is allowed -# ">" error noeat recolor=-1 - - -# In several contexts a space is an error, and since a coloured space is -# not visible, we colour the next non-space character as well. - -:error Bad - * error_visible noeat recolor=-1 - " \t\r\n" error - -:error_visible Bad - * content - -# Matched: & - -:entityref EntityRef - * error noeat recolor=-1 - "A-Za-z0-9._:-" entityref - "#" entityref - ";" content - -# Matched: < - -:tag Tag - * error noeat recolor=-1 - "/" end_tag - "A-Za-z_:" start_or_empty_tag buffer - "?" pi_start recolor=-2 - "!" decl recolor=-2 buffer - -# Matched: " content - -:end_tag2_sp Idle - * end_tag3 noeat - -:end_tag3 Tag - * error noeat recolor=-1 - " \t\r\n" end_tag3_sp recolor=-1 - ">" content - -:end_tag3_sp Idle - * end_tag_3 noeat - -# Matched: " content - -:start_or_empty_tag_sp Idle - * tag_space noeat - -# Matched: " content - -# Matched: " close_tag recolor=-1 - -:tag_space_sp Idle - * tag_space noeat - -# Matched: " error noeat recolor=-1 - - -:string_sq Constant - * string_sq - "<" error noeat recolor=-1 - "&" char_sq recolor=-1 - "'" endstring - "$" string_sq call=.maybe_antvar() - -# ">" error noeat recolor=-1 - - -:char_dq EntityRef - * error noeat recolor=-1 - "A-Za-z0-9._:-" char_dq - "#" char_dq - ";" string_dq - -:char_sq EntityRef - * error noeat recolor=-1 - "A-Za-z0-9._:-" char_sq - "#" char_sq - ";" string_sq - -.subr maybe_antvar -# initial state -:maybe_antvar Constant - * NULL return - "{" antvar recolor=-2 - -:antvar Escape - * antvar - "}" NULL return -.end - -# Matched: " close_tag recolor=-1 - -# This state is just to recolor the final ">" at the end of - -:close_tag Tag - * content noeat - -# Matched: " pi_end recolor=-2 - -:pi_end PIEnd - * content noeat recolor=-1 - -# Matched: " content - -# We allow one level of <...> nesting within declarations - -:decl_nest Decl - * decl_nest - ">" decl - -# Matched: . -# -# * "#" and "+" are lited as mistakes in unquoted tag values, -# although there exist (broken) programs that generate them. -# -# * Recognizes html-entities and lites mistakes in them. -# -# * SGML comments are parsed in the SGML way. This means there -# must be an even amount of "--" markers within the tag. -# -# * Recognizes 1018 different named entities. The list has been -# copied from some version of Lynx. Most browsers don't recognize -# that many. -# -# Todo: -# * tag name recognition -# * tag parameter name recognition -# * inline stylesheet and javascript highlighting -# (hard to do fool-proof, because the value may be entity-encoded). -# - -# Colours -=Background -=Text -=TagEdge green -=TagName green #cyan -=TagParam #green -=TagDelim #bold green -=TagValue cyan -=TagEntity bold blue -=SGMLtag magenta -=XML_pi yellow -=Entity bold blue -=Mystery bold yellow bg_red inverse - -# Call HTML highlighter subroutine - -:first Background - * call_failed noeat call=.html() - -:call_failed Mystery - * call_failed - -# -# HTML highlighter as a subroutine -# - -.subr html - -:reset Background - * idle noeat -.ifdef mason - "%" reset call=perl.perl(mason_line) -.endif - -# Rules -:idle Background - * idle - "\n" reset - "<" tag_begin recolor=-1 - "&" idle call=.entity() recolor=-1 -:mistake_idle Mystery - * idle noeat - -# Tags -:tag_begin TagEdge - * tag_name_first buffer noeat recolor=-1 - "/" tag_name_first buffer -.ifdef mason - "&" rtn_php call=perl.perl(mason_block) -.endif - "!" sgml_tag recolor=-2 -.ifdef php - "?%" rtn_php call=php.php() -.else - "?" xml_pi recolor=-2 -.endif -.ifdef erb - "%" maybe_erb_eq -.endif - -# this state allows php and perl to recolor the ?> %> or &> properly. -:rtn_php TagEdge - * idle noeat - -:maybe_erb_eq TagEdge - * rtn_php noeat call=ruby.ruby(erb) - "=" rtn_php call=ruby.ruby(erb) - -:tag_name_first Mystery - * tag_idle noeat - "-A-Za-z0-9._:" tag_name recolor=-1 - -:tag_name TagName - * tag_idle noeat strings - "script" stag_enter_idle - "style" ytag_enter_idle -done - "-A-Za-z0-9._:" tag_name - -:tag_idle Background - * mistake_tag recolor=-1 - "<" tag_maybe_php recolor=-1 - " \t \n" tag_idle - "/" tag_end recolor=-1 - ">" tag_end noeat recolor=-1 - "-A-Za-z0-9._:" tag_param noeat recolor=-1 - -:tag_maybe_php Mystery - * tag_idle - "?" tag_call_php recolor=-2 - -:tag_call_php TagEdge - * rtn_php_tag noeat call=php.php() - -:rtn_php_tag TagEdge - * tag_idle noeat - -:tag_param TagParam - * tag_idle noeat recolor=-1 - "-A-Za-z0-9._:" tag_param - "=" tag_delim recolor=-1 - -:tag_delim TagDelim - * mistake_tag noeat recolor=-1 - "\"" tag_idle call=.tag_value_quoted(dquote) recolor=-1 - "'" tag_idle call=.tag_value_quoted(squote) recolor=-1 - "-A-Za-z0-9._:" tag_value noeat recolor=-1 - -:tag_value TagValue - * tag_idle noeat recolor=-1 - "-A-Za-z0-9._:" tag_value - -:tag_end TagEdge - * idle - -:mistake_tag Mystery - * tag_idle noeat - -# We're about to entry a script... - -:stag_enter_idle TagName - * stag_idle noeat - -:stag_idle Background - * smistake_tag recolor=-1 - " \t \n" stag_idle - "/" stag_end recolor=-1 - ">" stag_end noeat recolor=-1 - "-A-Za-z0-9._:" stag_param noeat recolor=-1 - -:stag_param TagParam - * stag_idle noeat recolor=-1 - "-A-Za-z0-9._:" stag_param - "=" stag_delim recolor=-1 - -:stag_delim TagDelim - * smistake_tag noeat recolor=-1 - "\"" stag_idle call=.tag_value_quoted(dquote) recolor=-1 - "'" stag_idle call=.tag_value_quoted(squote) recolor=-1 - "-A-Za-z0-9._:" stag_value noeat recolor=-1 - -:stag_value TagValue - * stag_idle noeat recolor=-1 - "-A-Za-z0-9._:" stag_value - -:stag_end TagEdge -.ifdef php - * tag_begin call=js.js(php) -.else - * tag_begin call=js.js(html) -.endif - -:stag_done TagEdge - * tag_name_first buffer noeat - -:smistake_tag Mystery - * stag_idle noeat - -# We're about to entry a script... - -:ytag_enter_idle TagName - * ytag_idle noeat - -:ytag_idle Background - * ymistake_tag recolor=-1 - " \t \n" ytag_idle - "/" ytag_end recolor=-1 - ">" ytag_end noeat recolor=-1 - "-A-Za-z0-9._:" ytag_param noeat recolor=-1 - -:ytag_param TagParam - * ytag_idle noeat recolor=-1 - "-A-Za-z0-9._:" ytag_param - "=" ytag_delim recolor=-1 - -:ytag_delim TagDelim - * ymistake_tag noeat recolor=-1 - "\"" ytag_idle call=.tag_value_quoted(dquote) recolor=-1 - "'" ytag_idle call=.tag_value_quoted(squote) recolor=-1 - "-A-Za-z0-9._:" ytag_value noeat recolor=-1 - -:ytag_value TagValue - * ytag_idle noeat recolor=-1 - "-A-Za-z0-9._:" ytag_value - -:ytag_end TagEdge -.ifdef php - * tag_begin call=css.css(php) -.else - * tag_begin call=css.css() -.endif - -:ytag_done TagEdge - * tag_name_first buffer noeat - -:ymistake_tag Mystery - * ytag_idle noeat - -# SGML and comments -:sgml_tag SGMLtag - * sgml_tag - "-" sgml_tag_maybe_comment - ">" sgml_end noeat recolor=-1 -:sgml_tag_maybe_comment SGMLtag - * sgml_tag - "-" sgml_tag_comment -:sgml_tag_comment SGMLtag - * sgml_tag_comment - "-" sgml_tag_maybe_comment_end -:sgml_tag_maybe_comment_end SGMLtag - * sgml_tag_comment - "-" sgml_tag -:sgml_end SGMLtag - * idle - -# XML processing info -:xml_pi XML_pi - * xml_pi - "?" xml_pi_maybe_end -:xml_pi_maybe_end XML_pi - * xml_pi - "?" xml_pi_maybe_end - ">" xml_pi_end noeat recolor=-1 -:xml_pi_end XML_pi - * idle - -.end - -# -# Quoted string tag values -# - -.subr tag_value_quoted - -:tag_value_quoted TagValue - * tag_value_quoted -.ifdef dquote - "\"" tag_value_quoted return -.endif -.ifdef squote - "'" tag_value_quoted return -.endif - "<" tag_value_maybe_php - -:tag_value_maybe_php TagValue - * tag_value_quoted noeat - "?" tag_value_call_php recolor=-2 - -:tag_value_call_php TagEdge - * tag_value_rtn_php noeat call=php.php() - -:tag_value_rtn_php TagEdge - * tag_value_quoted noeat - -# Too many non-html things can be in quotes to do this... -# "&" tag_value_quoted call=.entity() recolor=-1 - -:mistake_tag_value Mystery - * tag_value_quoted noeat - -.end - - -# -# Entity parser -# - -.subr entity - -# Entities within plain content -:entity Entity - * entity_name noeat buffer recolor=-1 - "#" entity_numeric_begin -:entity_numeric_begin Entity - * entity_numeric noeat - "x" entity_hex -:entity_numeric Entity - * mistake_idle noeat recolor=-1 - "0-9" entity_numeric - ";" entity_end noeat recolor=-1 -:entity_hex Entity - * mistake_idle noeat recolor=-1 - "0-9a-fA-F" entity_hex - ";" entity_end noeat recolor=-1 -:entity_end Entity - * entity return - -:entity_name Mystery - * mistake_idle noeat recolor=-1 strings - "AElig" entity_ok - "Aacgr" entity_ok - "Aacute" entity_ok - "Abreve" entity_ok - "Acirc" entity_ok - "Acy" entity_ok - "Agr" entity_ok - "Agrave" entity_ok - "Alpha" entity_ok - "Amacr" entity_ok - "Aogon" entity_ok - "Aring" entity_ok - "Atilde" entity_ok - "Auml" entity_ok - "Barwed" entity_ok - "Bcy" entity_ok - "Beta" entity_ok - "Bgr" entity_ok - "CHcy" entity_ok - "Cacute" entity_ok - "Cap" entity_ok - "Ccaron" entity_ok - "Ccedil" entity_ok - "Ccirc" entity_ok - "Cdot" entity_ok - "Chi" entity_ok - "Cup" entity_ok - "DJcy" entity_ok - "DScy" entity_ok - "DZcy" entity_ok - "Dagger" entity_ok - "Dcaron" entity_ok - "Dcy" entity_ok - "Delta" entity_ok - "Dgr" entity_ok - "Dot" entity_ok - "DotDot" entity_ok - "Dstrok" entity_ok - "EEacgr" entity_ok - "EEgr" entity_ok - "ENG" entity_ok - "ETH" entity_ok - "Eacgr" entity_ok - "Eacute" entity_ok - "Ecaron" entity_ok - "Ecirc" entity_ok - "Ecy" entity_ok - "Edot" entity_ok - "Egr" entity_ok - "Egrave" entity_ok - "Emacr" entity_ok - "Eogon" entity_ok - "Epsilon" entity_ok - "Eta" entity_ok - "Euml" entity_ok - "Fcy" entity_ok - "GJcy" entity_ok - "Gamma" entity_ok - "Gbreve" entity_ok - "Gcedil" entity_ok - "Gcirc" entity_ok - "Gcy" entity_ok - "Gdot" entity_ok - "Gg" entity_ok - "Ggr" entity_ok - "Gt" entity_ok - "HARDcy" entity_ok - "Hcirc" entity_ok - "Hstrok" entity_ok - "IEcy" entity_ok - "IJlig" entity_ok - "IOcy" entity_ok - "Iacgr" entity_ok - "Iacute" entity_ok - "Icirc" entity_ok - "Icy" entity_ok - "Idigr" entity_ok - "Idot" entity_ok - "Igr" entity_ok - "Igrave" entity_ok - "Imacr" entity_ok - "Iogon" entity_ok - "Iota" entity_ok - "Itilde" entity_ok - "Iukcy" entity_ok - "Iuml" entity_ok - "Jcirc" entity_ok - "Jcy" entity_ok - "Jsercy" entity_ok - "Jukcy" entity_ok - "KHcy" entity_ok - "KHgr" entity_ok - "KJcy" entity_ok - "Kappa" entity_ok - "Kcedil" entity_ok - "Kcy" entity_ok - "Kgr" entity_ok - "LJcy" entity_ok - "Lacute" entity_ok - "Lambda" entity_ok - "Larr" entity_ok - "Lcaron" entity_ok - "Lcedil" entity_ok - "Lcy" entity_ok - "Lgr" entity_ok - "Ll" entity_ok - "Lmidot" entity_ok - "Lstrok" entity_ok - "Lt" entity_ok - "Mcy" entity_ok - "Mgr" entity_ok - "Mu" entity_ok - "NJcy" entity_ok - "Nacute" entity_ok - "Ncaron" entity_ok - "Ncedil" entity_ok - "Ncy" entity_ok - "Ngr" entity_ok - "Ntilde" entity_ok - "Nu" entity_ok - "OElig" entity_ok - "OHacgr" entity_ok - "OHgr" entity_ok - "Oacgr" entity_ok - "Oacute" entity_ok - "Ocirc" entity_ok - "Ocy" entity_ok - "Odblac" entity_ok - "Ogr" entity_ok - "Ograve" entity_ok - "Omacr" entity_ok - "Omega" entity_ok - "Omicron" entity_ok - "Oslash" entity_ok - "Otilde" entity_ok - "Ouml" entity_ok - "PHgr" entity_ok - "PSgr" entity_ok - "Pcy" entity_ok - "Pgr" entity_ok - "Phi" entity_ok - "Pi" entity_ok - "Prime" entity_ok - "Psi" entity_ok - "Racute" entity_ok - "Rarr" entity_ok - "Rcaron" entity_ok - "Rcedil" entity_ok - "Rcy" entity_ok - "Rgr" entity_ok - "Rho" entity_ok - "SHCHcy" entity_ok - "SHcy" entity_ok - "SOFTcy" entity_ok - "Sacute" entity_ok - "Scaron" entity_ok - "Scedil" entity_ok - "Scirc" entity_ok - "Scy" entity_ok - "Sgr" entity_ok - "Sigma" entity_ok - "Sub" entity_ok - "Sup" entity_ok - "THORN" entity_ok - "THgr" entity_ok - "TSHcy" entity_ok - "TScy" entity_ok - "Tau" entity_ok - "Tcaron" entity_ok - "Tcedil" entity_ok - "Tcy" entity_ok - "Tgr" entity_ok - "Theta" entity_ok - "Tstrok" entity_ok - "Uacgr" entity_ok - "Uacute" entity_ok - "Ubrcy" entity_ok - "Ubreve" entity_ok - "Ucirc" entity_ok - "Ucy" entity_ok - "Udblac" entity_ok - "Udigr" entity_ok - "Ugr" entity_ok - "Ugrave" entity_ok - "Umacr" entity_ok - "Uogon" entity_ok - "Upsi" entity_ok - "Upsilon" entity_ok - "Uring" entity_ok - "Utilde" entity_ok - "Uuml" entity_ok - "Vcy" entity_ok - "Vdash" entity_ok - "Verbar" entity_ok - "Vvdash" entity_ok - "Wcirc" entity_ok - "Xgr" entity_ok - "Xi" entity_ok - "YAcy" entity_ok - "YIcy" entity_ok - "YUcy" entity_ok - "Yacute" entity_ok - "Ycirc" entity_ok - "Ycy" entity_ok - "Yuml" entity_ok - "ZHcy" entity_ok - "Zacute" entity_ok - "Zcaron" entity_ok - "Zcy" entity_ok - "Zdot" entity_ok - "Zeta" entity_ok - "Zgr" entity_ok - "aacgr" entity_ok - "aacute" entity_ok - "abreve" entity_ok - "acirc" entity_ok - "acute" entity_ok - "acy" entity_ok - "aelig" entity_ok - "agr" entity_ok - "agrave" entity_ok - "alefsym" entity_ok - "aleph" entity_ok - "alpha" entity_ok - "amacr" entity_ok - "amalg" entity_ok - "amp" entity_ok - "and" entity_ok - "ang" entity_ok - "ang90" entity_ok - "angmsd" entity_ok - "angsph" entity_ok - "angst" entity_ok - "aogon" entity_ok - "ap" entity_ok - "ape" entity_ok - "apos" entity_ok - "aring" entity_ok - "ast" entity_ok - "asymp" entity_ok - "atilde" entity_ok - "auml" entity_ok - "b.Delta" entity_ok - "b.Gamma" entity_ok - "b.Lambda" entity_ok - "b.Omega" entity_ok - "b.Phi" entity_ok - "b.Pi" entity_ok - "b.Psi" entity_ok - "b.Sigma" entity_ok - "b.Theta" entity_ok - "b.Upsi" entity_ok - "b.Xi" entity_ok - "b.alpha" entity_ok - "b.beta" entity_ok - "b.chi" entity_ok - "b.delta" entity_ok - "b.epsi" entity_ok - "b.epsis" entity_ok - "b.epsiv" entity_ok - "b.eta" entity_ok - "b.gamma" entity_ok - "b.gammad" entity_ok - "b.iota" entity_ok - "b.kappa" entity_ok - "b.kappav" entity_ok - "b.lambda" entity_ok - "b.mu" entity_ok - "b.nu" entity_ok - "b.omega" entity_ok - "b.phis" entity_ok - "b.phiv" entity_ok - "b.pi" entity_ok - "b.piv" entity_ok - "b.psi" entity_ok - "b.rho" entity_ok - "b.rhov" entity_ok - "b.sigma" entity_ok - "b.sigmav" entity_ok - "b.tau" entity_ok - "b.thetas" entity_ok - "b.thetav" entity_ok - "b.upsi" entity_ok - "b.xi" entity_ok - "b.zeta" entity_ok - "barwed" entity_ok - "bcong" entity_ok - "bcy" entity_ok - "bdquo" entity_ok - "becaus" entity_ok - "bepsi" entity_ok - "bernou" entity_ok - "beta" entity_ok - "beth" entity_ok - "bgr" entity_ok - "blank" entity_ok - "blk12" entity_ok - "blk14" entity_ok - "blk34" entity_ok - "block" entity_ok - "bottom" entity_ok - "bowtie" entity_ok - "boxDL" entity_ok - "boxDR" entity_ok - "boxDl" entity_ok - "boxDr" entity_ok - "boxH" entity_ok - "boxHD" entity_ok - "boxHU" entity_ok - "boxHd" entity_ok - "boxHu" entity_ok - "boxUL" entity_ok - "boxUR" entity_ok - "boxUl" entity_ok - "boxUr" entity_ok - "boxV" entity_ok - "boxVH" entity_ok - "boxVL" entity_ok - "boxVR" entity_ok - "boxVh" entity_ok - "boxVl" entity_ok - "boxVr" entity_ok - "boxdL" entity_ok - "boxdR" entity_ok - "boxdl" entity_ok - "boxdr" entity_ok - "boxh" entity_ok - "boxhD" entity_ok - "boxhU" entity_ok - "boxhd" entity_ok - "boxhu" entity_ok - "boxuL" entity_ok - "boxuR" entity_ok - "boxul" entity_ok - "boxur" entity_ok - "boxv" entity_ok - "boxvH" entity_ok - "boxvL" entity_ok - "boxvR" entity_ok - "boxvh" entity_ok - "boxvl" entity_ok - "boxvr" entity_ok - "bprime" entity_ok - "breve" entity_ok - "brkbar" entity_ok - "brvbar" entity_ok - "bsim" entity_ok - "bsime" entity_ok - "bsol" entity_ok - "bull" entity_ok - "bump" entity_ok - "bumpe" entity_ok - "cacute" entity_ok - "cap" entity_ok - "caret" entity_ok - "caron" entity_ok - "ccaron" entity_ok - "ccedil" entity_ok - "ccirc" entity_ok - "cdot" entity_ok - "cedil" entity_ok - "cent" entity_ok - "chcy" entity_ok - "check" entity_ok - "chi" entity_ok - "cir" entity_ok - "circ" entity_ok - "cire" entity_ok - "clubs" entity_ok - "colon" entity_ok - "colone" entity_ok - "comma" entity_ok - "commat" entity_ok - "comp" entity_ok - "compfn" entity_ok - "cong" entity_ok - "conint" entity_ok - "coprod" entity_ok - "copy" entity_ok - "copysr" entity_ok - "crarr" entity_ok - "cross" entity_ok - "cuepr" entity_ok - "cuesc" entity_ok - "cularr" entity_ok - "cup" entity_ok - "cupre" entity_ok - "curarr" entity_ok - "curren" entity_ok - "cuvee" entity_ok - "cuwed" entity_ok - "dArr" entity_ok - "dagger" entity_ok - "daleth" entity_ok - "darr" entity_ok - "darr2" entity_ok - "dash" entity_ok - "dashv" entity_ok - "dblac" entity_ok - "dcaron" entity_ok - "dcy" entity_ok - "deg" entity_ok - "delta" entity_ok - "dgr" entity_ok - "dharl" entity_ok - "dharr" entity_ok - "diam" entity_ok - "diams" entity_ok - "die" entity_ok - "divide" entity_ok - "divonx" entity_ok - "djcy" entity_ok - "dlarr" entity_ok - "dlcorn" entity_ok - "dlcrop" entity_ok - "dollar" entity_ok - "dot" entity_ok - "drarr" entity_ok - "drcorn" entity_ok - "drcrop" entity_ok - "dscy" entity_ok - "dstrok" entity_ok - "dtri" entity_ok - "dtrif" entity_ok - "dzcy" entity_ok - "eDot" entity_ok - "eacgr" entity_ok - "eacute" entity_ok - "ecaron" entity_ok - "ecir" entity_ok - "ecirc" entity_ok - "ecolon" entity_ok - "ecy" entity_ok - "edot" entity_ok - "eeacgr" entity_ok - "eegr" entity_ok - "efDot" entity_ok - "egr" entity_ok - "egrave" entity_ok - "egs" entity_ok - "ell" entity_ok - "els" entity_ok - "emacr" entity_ok - "emdash" entity_ok - "empty" entity_ok - "emsp" entity_ok - "emsp13" entity_ok - "emsp14" entity_ok - "endash" entity_ok - "eng" entity_ok - "ensp" entity_ok - "eogon" entity_ok - "epsi" entity_ok - "epsilon" entity_ok - "epsis" entity_ok - "epsiv" entity_ok - "equals" entity_ok - "equiv" entity_ok - "erDot" entity_ok - "esdot" entity_ok - "eta" entity_ok - "eth" entity_ok - "euml" entity_ok - "euro" entity_ok - "excl" entity_ok - "exist" entity_ok - "fcy" entity_ok - "female" entity_ok - "ffilig" entity_ok - "fflig" entity_ok - "ffllig" entity_ok - "filig" entity_ok - "fjlig" entity_ok - "flat" entity_ok - "fllig" entity_ok - "fnof" entity_ok - "forall" entity_ok - "fork" entity_ok - "frac12" entity_ok - "frac13" entity_ok - "frac14" entity_ok - "frac15" entity_ok - "frac16" entity_ok - "frac18" entity_ok - "frac23" entity_ok - "frac25" entity_ok - "frac34" entity_ok - "frac35" entity_ok - "frac38" entity_ok - "frac45" entity_ok - "frac56" entity_ok - "frac58" entity_ok - "frac78" entity_ok - "frasl" entity_ok - "frown" entity_ok - "gE" entity_ok - "gEl" entity_ok - "gacute" entity_ok - "gamma" entity_ok - "gammad" entity_ok - "gap" entity_ok - "gbreve" entity_ok - "gcedil" entity_ok - "gcirc" entity_ok - "gcy" entity_ok - "gdot" entity_ok - "ge" entity_ok - "gel" entity_ok - "ges" entity_ok - "ggr" entity_ok - "gimel" entity_ok - "gjcy" entity_ok - "gl" entity_ok - "gnE" entity_ok - "gnap" entity_ok - "gne" entity_ok - "gnsim" entity_ok - "grave" entity_ok - "gsdot" entity_ok - "gsim" entity_ok - "gt" entity_ok - "gvnE" entity_ok - "hArr" entity_ok - "hairsp" entity_ok - "half" entity_ok - "hamilt" entity_ok - "hardcy" entity_ok - "harr" entity_ok - "harrw" entity_ok - "hcirc" entity_ok - "hearts" entity_ok - "hellip" entity_ok - "hibar" entity_ok - "horbar" entity_ok - "hstrok" entity_ok - "hybull" entity_ok - "hyphen" entity_ok - "iacgr" entity_ok - "iacute" entity_ok - "icirc" entity_ok - "icy" entity_ok - "idiagr" entity_ok - "idigr" entity_ok - "iecy" entity_ok - "iexcl" entity_ok - "iff" entity_ok - "igr" entity_ok - "igrave" entity_ok - "ijlig" entity_ok - "imacr" entity_ok - "image" entity_ok - "incare" entity_ok - "infin" entity_ok - "inodot" entity_ok - "int" entity_ok - "intcal" entity_ok - "iocy" entity_ok - "iogon" entity_ok - "iota" entity_ok - "iquest" entity_ok - "isin" entity_ok - "itilde" entity_ok - "iukcy" entity_ok - "iuml" entity_ok - "jcirc" entity_ok - "jcy" entity_ok - "jnodot" entity_ok - "jsercy" entity_ok - "jukcy" entity_ok - "kappa" entity_ok - "kappav" entity_ok - "kcedil" entity_ok - "kcy" entity_ok - "kgr" entity_ok - "kgreen" entity_ok - "khcy" entity_ok - "khgr" entity_ok - "kjcy" entity_ok - "lAarr" entity_ok - "lArr" entity_ok - "lE" entity_ok - "lEg" entity_ok - "lacute" entity_ok - "lagran" entity_ok - "lambda" entity_ok - "lang" entity_ok - "lap" entity_ok - "laquo" entity_ok - "larr" entity_ok - "larr2" entity_ok - "larrhk" entity_ok - "larrlp" entity_ok - "larrtl" entity_ok - "lcaron" entity_ok - "lcedil" entity_ok - "lceil" entity_ok - "lcub" entity_ok - "lcy" entity_ok - "ldot" entity_ok - "ldquo" entity_ok - "ldquor" entity_ok - "le" entity_ok - "leg" entity_ok - "les" entity_ok - "lfloor" entity_ok - "lg" entity_ok - "lgr" entity_ok - "lhard" entity_ok - "lharu" entity_ok - "lhblk" entity_ok - "ljcy" entity_ok - "lmidot" entity_ok - "lnE" entity_ok - "lnap" entity_ok - "lne" entity_ok - "lnsim" entity_ok - "lowast" entity_ok - "lowbar" entity_ok - "loz" entity_ok - "loz" entity_ok - "lozf" entity_ok - "lpar" entity_ok - "lpargt" entity_ok - "lrarr2" entity_ok - "lrhar2" entity_ok - "lrm" entity_ok - "lsaquo" entity_ok - "lsh" entity_ok - "lsim" entity_ok - "lsqb" entity_ok - "lsquo" entity_ok - "lsquor" entity_ok - "lstrok" entity_ok - "lt" entity_ok - "lthree" entity_ok - "ltimes" entity_ok - "ltri" entity_ok - "ltrie" entity_ok - "ltrif" entity_ok - "lvnE" entity_ok - "macr" entity_ok - "male" entity_ok - "malt" entity_ok - "map" entity_ok - "marker" entity_ok - "mcy" entity_ok - "mdash" entity_ok - "mgr" entity_ok - "micro" entity_ok - "mid" entity_ok - "middot" entity_ok - "minus" entity_ok - "minusb" entity_ok - "mldr" entity_ok - "mnplus" entity_ok - "models" entity_ok - "mu" entity_ok - "mumap" entity_ok - "nVDash" entity_ok - "nVdash" entity_ok - "nabla" entity_ok - "nacute" entity_ok - "nap" entity_ok - "napos" entity_ok - "natur" entity_ok - "nbsp" entity_ok - "ncaron" entity_ok - "ncedil" entity_ok - "ncong" entity_ok - "ncy" entity_ok - "ndash" entity_ok - "ne" entity_ok - "nearr" entity_ok - "nequiv" entity_ok - "nexist" entity_ok - "ngE" entity_ok - "nge" entity_ok - "nges" entity_ok - "ngr" entity_ok - "ngt" entity_ok - "nhArr" entity_ok - "nharr" entity_ok - "ni" entity_ok - "njcy" entity_ok - "nlArr" entity_ok - "nlE" entity_ok - "nlarr" entity_ok - "nldr" entity_ok - "nle" entity_ok - "nles" entity_ok - "nlt" entity_ok - "nltri" entity_ok - "nltrie" entity_ok - "nmid" entity_ok - "not" entity_ok - "notin" entity_ok - "npar" entity_ok - "npr" entity_ok - "npre" entity_ok - "nrArr" entity_ok - "nrarr" entity_ok - "nrtri" entity_ok - "nrtrie" entity_ok - "nsc" entity_ok - "nsce" entity_ok - "nsim" entity_ok - "nsime" entity_ok - "nsmid" entity_ok - "nspar" entity_ok - "nsub" entity_ok - "nsubE" entity_ok - "nsube" entity_ok - "nsup" entity_ok - "nsupE" entity_ok - "nsupe" entity_ok - "ntilde" entity_ok - "nu" entity_ok - "num" entity_ok - "numero" entity_ok - "numsp" entity_ok - "nvDash" entity_ok - "nvdash" entity_ok - "nwarr" entity_ok - "oS" entity_ok - "oacgr" entity_ok - "oacute" entity_ok - "oast" entity_ok - "ocir" entity_ok - "ocirc" entity_ok - "ocy" entity_ok - "odash" entity_ok - "odblac" entity_ok - "odot" entity_ok - "oelig" entity_ok - "ogon" entity_ok - "ogr" entity_ok - "ograve" entity_ok - "ohacgr" entity_ok - "ohgr" entity_ok - "ohm" entity_ok - "olarr" entity_ok - "oline" entity_ok - "omacr" entity_ok - "omega" entity_ok - "omicron" entity_ok - "ominus" entity_ok - "oplus" entity_ok - "or" entity_ok - "orarr" entity_ok - "order" entity_ok - "ordf" entity_ok - "ordm" entity_ok - "oslash" entity_ok - "osol" entity_ok - "otilde" entity_ok - "otimes" entity_ok - "ouml" entity_ok - "par" entity_ok - "para" entity_ok - "part" entity_ok - "pcy" entity_ok - "percnt" entity_ok - "period" entity_ok - "permil" entity_ok - "perp" entity_ok - "pgr" entity_ok - "phgr" entity_ok - "phi" entity_ok - "phis" entity_ok - "phiv" entity_ok - "phmmat" entity_ok - "phone" entity_ok - "pi" entity_ok - "piv" entity_ok - "planck" entity_ok - "plus" entity_ok - "plusb" entity_ok - "plusdo" entity_ok - "plusmn" entity_ok - "pound" entity_ok - "pr" entity_ok - "prap" entity_ok - "pre" entity_ok - "prime" entity_ok - "prnE" entity_ok - "prnap" entity_ok - "prnsim" entity_ok - "prod" entity_ok - "prop" entity_ok - "prsim" entity_ok - "psgr" entity_ok - "psi" entity_ok - "puncsp" entity_ok - "quest" entity_ok - "quot" entity_ok - "rAarr" entity_ok - "rArr" entity_ok - "racute" entity_ok - "radic" entity_ok - "rang" entity_ok - "raquo" entity_ok - "rarr" entity_ok - "rarr2" entity_ok - "rarrhk" entity_ok - "rarrlp" entity_ok - "rarrtl" entity_ok - "rarrw" entity_ok - "rcaron" entity_ok - "rcedil" entity_ok - "rceil" entity_ok - "rcub" entity_ok - "rcy" entity_ok - "rdquo" entity_ok - "rdquor" entity_ok - "real" entity_ok - "rect" entity_ok - "reg" entity_ok - "rfloor" entity_ok - "rgr" entity_ok - "rhard" entity_ok - "rharu" entity_ok - "rho" entity_ok - "rhov" entity_ok - "ring" entity_ok - "rlarr2" entity_ok - "rlhar2" entity_ok - "rlm" entity_ok - "rpar" entity_ok - "rpargt" entity_ok - "rsaquo" entity_ok - "rsh" entity_ok - "rsqb" entity_ok - "rsquo" entity_ok - "rsquor" entity_ok - "rthree" entity_ok - "rtimes" entity_ok - "rtri" entity_ok - "rtrie" entity_ok - "rtrif" entity_ok - "rx" entity_ok - "sacute" entity_ok - "samalg" entity_ok - "sbquo" entity_ok - "sbsol" entity_ok - "sc" entity_ok - "scap" entity_ok - "scaron" entity_ok - "sccue" entity_ok - "sce" entity_ok - "scedil" entity_ok - "scirc" entity_ok - "scnE" entity_ok - "scnap" entity_ok - "scnsim" entity_ok - "scsim" entity_ok - "scy" entity_ok - "sdot" entity_ok - "sdotb" entity_ok - "sect" entity_ok - "semi" entity_ok - "setmn" entity_ok - "sext" entity_ok - "sfgr" entity_ok - "sfrown" entity_ok - "sgr" entity_ok - "sharp" entity_ok - "shchcy" entity_ok - "shcy" entity_ok - "shy" entity_ok - "sigma" entity_ok - "sigmaf" entity_ok - "sigmav" entity_ok - "sim" entity_ok - "sime" entity_ok - "smid" entity_ok - "smile" entity_ok - "softcy" entity_ok - "sol" entity_ok - "spades" entity_ok - "spar" entity_ok - "sqcap" entity_ok - "sqcup" entity_ok - "sqsub" entity_ok - "sqsube" entity_ok - "sqsup" entity_ok - "sqsupe" entity_ok - "squ" entity_ok - "square" entity_ok - "squf" entity_ok - "ssetmn" entity_ok - "ssmile" entity_ok - "sstarf" entity_ok - "star" entity_ok - "starf" entity_ok - "sub" entity_ok - "subE" entity_ok - "sube" entity_ok - "subnE" entity_ok - "subne" entity_ok - "sum" entity_ok - "sung" entity_ok - "sup" entity_ok - "sup1" entity_ok - "sup2" entity_ok - "sup3" entity_ok - "supE" entity_ok - "supe" entity_ok - "supnE" entity_ok - "supne" entity_ok - "szlig" entity_ok - "target" entity_ok - "tau" entity_ok - "tcaron" entity_ok - "tcedil" entity_ok - "tcy" entity_ok - "tdot" entity_ok - "telrec" entity_ok - "tgr" entity_ok - "there4" entity_ok - "theta" entity_ok - "thetas" entity_ok - "thetasym" entity_ok - "thetav" entity_ok - "thgr" entity_ok - "thinsp" entity_ok - "thkap" entity_ok - "thksim" entity_ok - "thorn" entity_ok - "tilde" entity_ok - "times" entity_ok - "timesb" entity_ok - "top" entity_ok - "tprime" entity_ok - "trade" entity_ok - "trie" entity_ok - "tscy" entity_ok - "tshcy" entity_ok - "tstrok" entity_ok - "twixt" entity_ok - "uArr" entity_ok - "uacgr" entity_ok - "uacute" entity_ok - "uarr" entity_ok - "uarr2" entity_ok - "ubrcy" entity_ok - "ubreve" entity_ok - "ucirc" entity_ok - "ucy" entity_ok - "udblac" entity_ok - "udiagr" entity_ok - "udigr" entity_ok - "ugr" entity_ok - "ugrave" entity_ok - "uharl" entity_ok - "uharr" entity_ok - "uhblk" entity_ok - "ulcorn" entity_ok - "ulcrop" entity_ok - "umacr" entity_ok - "uml" entity_ok - "uogon" entity_ok - "uplus" entity_ok - "upsi" entity_ok - "upsih" entity_ok - "upsilon" entity_ok - "urcorn" entity_ok - "urcrop" entity_ok - "uring" entity_ok - "utilde" entity_ok - "utri" entity_ok - "utrif" entity_ok - "uuml" entity_ok - "vArr" entity_ok - "vDash" entity_ok - "varr" entity_ok - "vcy" entity_ok - "vdash" entity_ok - "veebar" entity_ok - "vellip" entity_ok - "verbar" entity_ok - "vltri" entity_ok - "vprime" entity_ok - "vprop" entity_ok - "vrtri" entity_ok - "vsubnE" entity_ok - "vsubne" entity_ok - "vsupnE" entity_ok - "vsupne" entity_ok - "wcirc" entity_ok - "wedgeq" entity_ok - "weierp" entity_ok - "wreath" entity_ok - "xcirc" entity_ok - "xdtri" entity_ok - "xgr" entity_ok - "xhArr" entity_ok - "xharr" entity_ok - "xi" entity_ok - "xlArr" entity_ok - "xrArr" entity_ok - "xutri" entity_ok - "yacute" entity_ok - "yacy" entity_ok - "ycirc" entity_ok - "ycy" entity_ok - "yen" entity_ok - "yicy" entity_ok - "yucy" entity_ok - "yuml" entity_ok - "zacute" entity_ok - "zcaron" entity_ok - "zcy" entity_ok - "zdot" entity_ok - "zeta" entity_ok - "zgr" entity_ok - "zhcy" entity_ok - "zwj" entity_ok - "zwnj" entity_ok -done - ".0-9A-Za-z" entity_name - -:entity_ok Entity - * mistake_entity noeat recolor=-1 - ";" entity_end noeat recolor=-1 - -:mistake_entity Mystery - * idle noeat - -.end diff --git a/htmlerb.jsf b/htmlerb.jsf deleted file mode 100644 index 13b3dd3..0000000 --- a/htmlerb.jsf +++ /dev/null @@ -1,11 +0,0 @@ -# JOE syntax highlight file for HTML embedded ERB - -=Idle -=Keyword bold -=Bad bold red -=Brace magenta - -=ERB yellow - -:begin Idle - * NULL noeat call=html.html(erb) diff --git a/iptables.jsf b/iptables.jsf index cc30734..c846b9f 100644 --- a/iptables.jsf +++ b/iptables.jsf @@ -1,4 +1,5 @@ # JOE syntax highlight file for ip(6)tables-save and -restore +# by Christian Nicolai (http://mycrobase.de) =Idle =Comment green diff --git a/java.jsf b/java.jsf deleted file mode 100644 index 7b49ecd..0000000 --- a/java.jsf +++ /dev/null @@ -1,284 +0,0 @@ -# JOE syntax highlight file for JAVA - -# Needs: \uXXXX for unicode in strings -# improve escape parsing - -=Idle -=Comment green -=CommentLabel bold green -=Constant cyan -=Escape bold cyan -=Type bold -=Keyword bold -=Operator bold -=Bad bold red -=Brace magenta -=Control - -=Methods - -:begin Idle - * begin noeat call=.java() - -# -# Java as a subroute- for use as java script in html -# - -.subr java - -:idle Idle - * idle - "\n" idle - "/" slash - "0" first_digit recolor=-1 - "1-9" decimal recolor=-1 - "." maybe_float - "\"" string recolor=-1 - "'" char recolor=-1 - "a-zA-Z_" ident mark buffer - "{}" brace recolor=-1 - ",:;=()><[]*&|!~+\-%^" control recolor=-1 - -:maybe_done Control - * idle noeat - "/" idle noeat return recolor=-2 - -:brace Brace - * idle noeat - -:control Control - * idle noeat - -:slash Idle - * idle noeat - "*" comment recolor=-2 - "/" line_comment recolor=-2 - -:comment Comment - * comment - # might be TODO label - "BFHNTX" comment noeat call=.comment_todo() - "*" maybe_end_comment - -:maybe_end_comment Comment - * comment noeat - "/" idle - "*" maybe_end_comment - -:line_comment Comment - * line_comment - # might be TODO label - "BFHNTX" line_comment noeat call=.comment_todo() - "\n" idle - -:first_digit Constant - * idle noeat - "xX" hex - "." float - "eE" epart - "0-7" octal - "89" bad_number recolor=-1 - -:bad_number Bad - * idle noeat - "0-9" bad_number - -:octal Constant - * idle noeat - "0-7" octal - "89" bad_number recolor=-1 - -:hex Constant - * idle noeat - "0-9A-Fa-f" hex - -:decimal Constant - * idle noeat - "0-9" decimal - "eE" epart - "." float - -:maybe_float Constant - * idle recolor=-2 noeat - "0-9" float recolor=-2 - -:float Constant - * idle noeat - "eE" epart - "0-9" float - -:epart Constant - * idle noeat - "0-9+\-" enum - -:enum Constant - * idle noeat - "0-9" enum - -:string Constant - * string - "\"" idle - "\\" string_escape recolor=-1 - "%" string_control recolor=-1 - -:string_escape Escape - * string - "x" string_hex1 - "0-7" string_octal2 - "\n" string recolor=-2 - -:string_hex1 Escape - * string noeat - "0-9a-fA-F" string_hex2 - -:string_hex2 Escape - * string noeat - "0-9a-fA-F" string - -:string_octal2 Escape - * string noeat - "0-7" string_octal3 - -:string_octal3 Escape - * string noeat - "0-7" string - -:string_control Escape - * string_control - "\n" reset - "diouxXeEfFgGaAcspn%SC" string - -:char Constant - * char - "\n" reset - "'" idle - "\\" char_escape recolor=-1 - -:char_escape Escape - * char - "x" char_hex1 - "0-7" char_octal2 - "\n" char recolor=-2 - -:char_hex1 Escape - * char noeat - "0-9a-fA-F" char_hex2 - -:char_hex2 Escape - * char noeat - "0-9a-fA-F" char - -:char_octal2 Escape - * char noeat - "0-7" char_octal3 - -:char_octal3 Escape - * char noeat - "0-7" char - -:ident Idle - * ident_end noeat markend strings - "abstract" kw - "assert" kw - "boolean" type - "break" kw - "byte" type - "case" kw - "catch" kw - "char" type - "class" kw - "const" bad_kw - "continue" kw - "default" kw - "do" kw - "double" type - "else" kw - "enum" kw - "extends" kw - "false" lit - "final" kw - "finally" kw - "float" type - "for" kw - "goto" bad_kw - "if" kw - "implements" kw - "import" kw - "instanceof" operator - "int" type - "interface" kw - "long" type - "native" kw - "new" operator - "null" lit - "package" kw - "private" kw - "protected" kw - "public" kw - "return" kw - "short" type - "static" kw - "strictfp" kw - "super" kw - "switch" kw - "synchronized" kw - "this" kw - "throw" kw - "throws" kw - "transient" kw - "true" lit - "try" kw - "void" kw - "volatile" kw - "while" kw -done - "a-zA-Z0-9_" ident - -:type Type - * idle noeat - -:kw Keyword - * idle noeat - -:bad_kw Bad - * idle noeat - -:lit Constant - * idle noeat - -:operator Operator - * idle noeat - -:ident_end Idle - * idle noeat - " " ident_end - "(" method_end noeat recolormark - -:method_end Methods - * idle noeat - -.end - -.subr comment_todo -# initial state -:comment_todo_init Comment - * comment_todo_guess buffer - -# highlight common TODO labels -:comment_todo_guess Comment - * comment_todo_unknown noeat strings - "BUG" comment_todo - "FIXME" comment_todo - "HACK" comment_todo - "NOTE" comment_todo - "TODO" comment_todo - "XXX" comment_todo -done - "A-Z" comment_todo_guess - -:comment_todo_unknown Comment - * NULL noeat return - -:comment_todo CommentLabel - * NULL noeat return -.end diff --git a/js.jsf b/js.jsf deleted file mode 100644 index 6fb493d..0000000 --- a/js.jsf +++ /dev/null @@ -1,548 +0,0 @@ -# JOE syntax highlight file for JavaScript - -# Define colors - -=Idle -=Comment green -=CommentLabel bold green -=Constant cyan -=String cyan -=StringEscape bold cyan -=Regexp cyan -=RegexpEscape bold cyan -=RegexpOptions cyan -=Number cyan -=Type bold -=CustomType -=Keyword bold -=Global bold -=Exports -=ExportItem -=Operator bold -=Bad inverse bold red -=Brace magenta -=Assign bold -=Paren -=Bracket -=Semicolon -=Comma -=PropSep -=Syntax -=Ident -=Method - -# from html.jsf to support embedded languages -=TagEdge green - -:begin Idle - * begin noeat call=.js() - "#" shebang recolor=-1 - -:shebang Comment - * shebang - "\n" begin - -.subr js - -:idle Idle - * idle - "/" re_or_comment recolor=-1 - "0" first_digit recolor=-1 - "1-9" decimal recolor=-1 - "." maybe_float - "\"" string recolor=-1 save_c - "'" string recolor=-1 save_c - "A-Z" type_match mark buffer recolor=-1 - "$a-z_" ident mark buffer recolor=-1 - "{}" brace recolor=-1 - "()" paren noeat recolor=-1 - ";" semicolon recolor=-1 - "," comma recolor=-1 - "=" assign_maybe recolor=-1 - "[]" bracket noeat recolor=-1 - "\-" subtract recolor=-1 - "+" add recolor=-1 - "*|&^%" mutate_maybe recolor=-1 - ":?~" syntax recolor=-1 -.ifdef html - "<" maybe_done recolor=-1 - ">!" eqmixer_maybe recolor=-1 -.else -.ifdef php - "<" maybe_done recolor=-1 - ">!" eqmixer_maybe recolor=-1 -.else -.ifdef mason - "<" maybe_done recolor=-1 - ">!" eqmixer_maybe recolor=-1 -.else - "<>!" eqmixer_maybe recolor=-1 -.endif -.endif -.endif - -:subtract Assign - * mutate_maybe noeat - "\-" assign recolor=-2 - -:add Assign - * mutate_maybe noeat - "+" assign recolor=-2 - -:mutate_maybe Assign - * syntax recolor=-2 noeat - "=" assign recolor=-2 - -:syntax Syntax - * idle recolor=-1 noeat - -:assign Assign - * idle recolor=-1 noeat - -:eqmixer_maybe Syntax - * idle recolor=-1 noeat - "=" eqmixer_maybe - -:assign_maybe Assign - * idle recolor=-1 noeat - "=" equality recolor=-2 - -:equality Syntax - * idle recolor=-1 noeat - "=" syntax - -:maybe_done TagEdge - * eqmixer_maybe noeat - "/" idle noeat return recolor=-2 -.ifdef php - "?" rtn_embed call=php.php() -.endif -.ifdef mason - "&%" rtn_embed call=perl.perl() -.endif - -:rtn_embed TagEdge - * idle noeat - -:no_regex Idle - * idle noeat - "/" maybe_comment recolor=-1 - " " no_regex - -:after_term Idle - * after_term - "\n" idle - "/" maybe_comment recolor=-1 - "." prop_sep recolor=-1 - "a-z" infix_operator buffer recolor=-1 - "\"'A-Z_0-9" bad_after_term recolor=-1 - "{}" brace recolor=-1 - "()" paren noeat recolor=-1 - ";" semicolon recolor=-1 - "=" assign_maybe recolor=-1 - "," comma recolor=-1 - "[]" bracket noeat recolor=-1 - "\-" subtract recolor=-1 - "+" add recolor=-1 - "*|&^%" mutate_maybe recolor=-1 - ":?~" syntax recolor=-1 -.ifdef html - "<" maybe_done recolor=-1 - ">!" eqmixer_maybe recolor=-1 -.else -.ifdef php - "<" maybe_done recolor=-1 - ">!" eqmixer_maybe recolor=-1 -.else -.ifdef mason - "<" maybe_done recolor=-1 - ">!" eqmixer_maybe recolor=-1 -.else - "<>!" eqmixer_maybe recolor=-1 -.endif -.endif -.endif - -:ident_only Idle - * bad_after_term recolor=-1 - "A-Z" type_match mark buffer recolor=-1 - "$a-z_" ident mark buffer recolor=-1 - " \t" ident_only - "\n" idle - -:bad_after_term Bad - * after_term noeat markend strings -done - "\"'" after_term - "a-zA-Z0-9_." bad_after_term - -:re_or_comment Syntax - * regex noeat recolor=-2 - "*/" maybe_comment noeat - -:maybe_comment Syntax - * syntax noeat - "*" comment recolor=-2 - "/" line_comment recolor=-2 - "=" assign recolor=-2 - -:comment Comment - * comment - # might be TODO label - "BFHNTX" comment noeat call=.comment_todo() - "*" maybe_end_comment - -:maybe_end_comment Comment - * comment noeat - "/" idle - "*" maybe_end_comment - -:line_comment Comment - * line_comment - # might be TODO label - "BFHNTX" line_comment noeat call=.comment_todo() - "\n" idle - -:regex Regexp - * regex - "\\" regex_quote recolor=-1 - "[" regex_charclass - "/" regex_mod - "\n" regex_bad - -:regex_quote RegexpEscape - * regex - "\n" regex_bad - -:regex_charclass Regexp - * regex_charclass - "\\" regex_cc_quote recolor=-1 - "\n" regex_bad_cc - "]" regex - -:regex_cc_quote RegexpEscape - * regex_charclass - "\n" regex_bad_cc - -:regex_bad Bad - * regex_bad - "\\" regex_bad_quote - "[" regex_bad_cc - "/" after_term - -:regex_bad_quote Bad - * regex_bad - -:regex_bad_cc Bad - * regex_bad_cc - "\\" regex_bad_quote_cc - "]" regex_bad - -:regex_bad_quote_cc Bad - * regex_bad_cc - -:regex_mod RegexpOptions - * after_term noeat - "igm" regex_mod - -:brace Brace - * idle noeat - -:paren Paren - "(" idle - ")" no_regex - -:bracket Bracket - "[" idle - "]" after_term - -:syntax Syntax - * idle noeat - -:comma Comma - * idle noeat - -:semicolon Semicolon - * idle noeat - -:first_digit Number - * after_term noeat - "xX" hex - "." float - "eE" epart - "0-7" octal - "89" bad_number recolor=-1 - -:bad_number Bad - * after_term noeat - "0-9" bad_number - -:octal Number - * after_term noeat - "0-7" octal - "89" bad_number recolor=-1 - -:hex Number - * after_term noeat - "0-9A-Fa-f" hex - -:decimal Number - * after_term noeat - "0-9" decimal - "eE" epart - "." float - -:maybe_float Number - * prop_sep noeat recolor=-2 - "0-9" float recolor=-2 - -:prop_sep PropSep - * ident_only noeat - -:float Number - * after_term noeat - "eE" epart - "0-9" float - -:epart Number - * after_term noeat - "0-9+\-" enum - -:enum Number - * after_term noeat - "0-9" enum - -:string String - * string_body noeat mark - -:string_body String - * string - "\n" string_bad - & after_term - "\\" string_escape recolor=-1 - -:string_bad Bad - * string_bad - "\\" string_bad_escape - & after_term - -:string_bad_escape Bad - * string_bad - -:string_escape StringEscape - * string - "x" string_hex1 - "0-7" string_octal2 - "\n" string_bad noeat - -:string_hex1 StringEscape - * string noeat - "0-9a-fA-F" string_hex2 - -:string_hex2 StringEscape - * string noeat - "0-9a-fA-F" string - -:string_octal2 StringEscape - * string noeat - "0-7" string_octal3 - -:string_octal3 StringEscape - * string noeat - "0-7" string - -:infix_operator Bad - * bad_op noeat markend strings - "in" operator - "instanceof" operator -done - "a-zA-Z0-9_" infix_operator - -:bad_op Bad - * idle noeat - "a-zA-Z0-9_" bad_op - -:operator Operator - * idle noeat - -:type_match CustomType - * type_end noeat markend strings - "Infinity" lit - "NaN" lit - "Array" type - "ArrayBuffer" type - "Boolean" type - "DataView" type - "Date" type - "Error" type - "EvalError" type - "Function" type - "Float32Array" type - "Float64Array" type - "Int16Array" type - "Int32Array" type - "Int8Array" type - "JSON" type - "Math" type - "Number" type - "Object" type - "RangeError" type - "ReferenceError" type - "RegExp" type - "String" type - "SyntaxError" type - "TypeError" type - "Uint16Array" type - "Uint32Array" type - "Uint8Array" type - "Uint8ClampedArray" type - "URIError" type - # node.js - "Buffer" type -done - "a-zA-Z0-9_" type_match - -:type_end Idle - * after_term noeat - " " type_end - "." prop_sep recolor=-1 - -:ident Ident - * ident_end noeat markend strings - "delete" operator - "in" operator - "instanceof" operator - "typeof" operator - "new" operator - "arguments" kw - "break" kw - "case" kw - "catch" kw - "continue" kw - "default" kw - "do" kw - "else" kw - "finally" kw - "for" kw - "function" kw - "if" kw - "let" kw - "return" kw - "switch" kw - "throw" kw - "try" kw - "var" kw - "void" kw - "while" kw - "with" kw - "false" lit - "null" lit - "true" lit - "const" global - "decodeURI" global - "decodeURIComponent" global - "encodeURI" global - "encodeURIComponent" global - "escape" global - "eval" global - "isFinite" global - "isNaN" global - "parseFloat" global - "parseInt" global - "undefined" global - "unescape" global - "setImmediate" global - "this" quasikw - "prototype" quasikw - # node.js - "exports" export - "module" global - "process" global - "global" global - "console" global - "setTimeout" global - "setInterval" global - "clearInterval" global - "clearTimeout" global - "require" quasikw - "__filename" quasikw - "__dirname" quasikw - # By convention... - "self" quasikw -done - "$a-zA-Z0-9_" ident - -:ident_end Idle - * after_term noeat - " " ident_end - "." prop_sep recolor=-1 - "(" method_start recolor=-1 - -:method_start Paren - * method_end noeat recolormark - -:method_end Method - * idle noeat - -:type Type - * after_term noeat - -:kw Keyword - * idle noeat - -:quasikw Keyword - * after_term noeat - -:global Global - * after_term noeat - -:export Exports - * export_end noeat - -:export_end Exports - * after_term noeat - " " export_end - "." export_item_start - -:export_item_start ExportItem - * bad_after_term recolor=-1 noeat - " " export_item_start - "a-zA-Z_" export_item - -:export_item ExportItem - * after_term noeat - "a-zA-Z0-9_" export_item - -:lit Constant - * lit_end noeat - -:lit_end Constant - * after_term noeat - " " lit_end - "." prop_sep recolor=-1 - -.end - -.subr comment_todo -# initial state -:todo_init Comment - * todo_guess buffer - -# highlight common TODO labels -:todo_guess Comment - * todo_unknown noeat strings - "BUG" todo - "FIXME" todo - "HACK" todo - "NOTE" todo - "TODO" todo - "XXX" todo -done - "A-Z" todo_guess - -:todo_unknown Comment - * NULL noeat return - -:todo CommentLabel - * NULL noeat return -.end diff --git a/makefile.jsf b/makefile.jsf index 8c4187b..a0def0e 100644 --- a/makefile.jsf +++ b/makefile.jsf @@ -2,7 +2,6 @@ =Idle =Comment green -=CommentLabel bold green =Constant cyan =Escape bold cyan =Bad bold red @@ -52,7 +51,7 @@ :line_comment Comment * line_comment # might be TODO label - "BFHNTX" line_comment noeat call=.comment_todo() + "BFHNTX" line_comment noeat call=comment_todo.comment_todo() "\n" line_start :maybe_target Idle @@ -71,27 +70,3 @@ done :target_rest TargetRest * target_rest "\n" line_start - -.subr comment_todo -# initial state -:comment_todo_init Comment - * comment_todo_guess buffer - -# highlight common TODO labels -:comment_todo_guess Comment - * comment_todo_unknown noeat strings - "BUG" comment_todo - "FIXME" comment_todo - "HACK" comment_todo - "NOTE" comment_todo - "TODO" comment_todo - "XXX" comment_todo -done - "A-Z" comment_todo_guess - -:comment_todo_unknown Comment - * NULL noeat return - -:comment_todo CommentLabel - * NULL noeat return -.end diff --git a/md.jsf b/md.jsf deleted file mode 100644 index 683114b..0000000 --- a/md.jsf +++ /dev/null @@ -1,134 +0,0 @@ -# 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 - -=Bold bold -=Headline bold yellow -=Quote green -=Code green -=List yellow -=LinkDesc green -=Link blue -=Rule inverse - -:line_start Idle - * idle noeat - "#" headline_prefix recolor=-1 - ">" quote recolor=-1 - " " maybe_code1 - "\t" code - "-*" maybe_list - -:idle Idle - * idle - "\n" line_start - "<" tag recolor=-1 - "\\" escape recolor=-1 - "*_" maybe_bold1 - "[" 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 - -: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 - -:tag Tag - * idle - "a-z0-9 /" tag - ">" idle - -# do escaping of *_ and so on -:escape Escape - * idle - -:maybe_bold1 Idle - * 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 - * idle noeat - -: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 diff --git a/misc/comment_todo.part.jsf b/misc/comment_todo.part.jsf deleted file mode 100644 index 7e8d6e1..0000000 --- a/misc/comment_todo.part.jsf +++ /dev/null @@ -1,38 +0,0 @@ -# ===== Color Definitions ===== - -=Comment green -=CommentLabel bold green - -# ===== Example Usage ===== - -:line_comment Comment - * line_comment - # might be TODO label - "BFHNTX" line_comment noeat call=.comment_todo() - "\n" idle - -# ===== Subroutine Declaration ===== - -.subr comment_todo -# initial state -:comment_todo_init Comment - * comment_todo_guess buffer - -# highlight common TODO labels -:comment_todo_guess Comment - * comment_todo_unknown noeat strings - "BUG" comment_todo - "FIXME" comment_todo - "HACK" comment_todo - "NOTE" comment_todo - "TODO" comment_todo - "XXX" comment_todo -done - "A-Z" comment_todo_guess - -:comment_todo_unknown Comment - * NULL noeat return - -:comment_todo CommentLabel - * NULL noeat return -.end diff --git a/php.jsf b/php.jsf deleted file mode 100644 index 8872709..0000000 --- a/php.jsf +++ /dev/null @@ -1,293 +0,0 @@ -# JOE syntax highlight file for PHP -# modified by Eric Lin - -# TODO: -# * heredoc support (as good as possible) -# * highlight function and class names? - -# Define no. sync lines -# You can say: -# -200 means 200 lines -# - means always start parsing from beginning of file when we lose sync -# if nothing is specified, the default is -50 - -- - -# Define colors - -=Idle -=Comment green -=Constant cyan -=Constant_sq blue -=Escape bold cyan -=Keyword bold -=Var red -=Methods bold - -# Call HTML highlighter. It will call the PHP highlighter subroutine in this file. - -:begin Idle - * call_failed noeat call=html.html(php) - -:call_failed Var - * call_failed - -# PHP highlighter. - -.subr php - -:idle Idle - * idle - "<" idle_done - "?" idle_qmark - "%" idle_hash - "#" sh_comment recolor=-1 - "/" slash - "0-9" first_digit recolor=-1 - "'" string_sq recolor=-1 - "\"" string_dq recolor=-1 - "\`" string_bq recolor=-1 - "a-zA-Z_" ident buffer - "$" php_var recolor=-1 - "-" maybe_method - "{}" brace recolor=-1 - -:idle_done Idle - * idle noeat - "/" idle noeat recolor=-2 return - "<" idle_here - -:idle_here Idle - * idle noeat - "<" here_doc - -:here_doc Idle - * idle noeat - " " here_doc - "A-Za-z_" here_name buffer - -:here_name Idle - * inhere_doc save_s - "A-Za-z_0-9" here_name - -:inhere_doc Constant - * inhere_not_eol - "\n" inhere_doc - "A-Za-z_" inhere_name buffer - -:inhere_not_eol Constant - * inhere_not_eol - "\n" inhere_doc - -:inhere_name Constant - * inhere_doc - ";" inhere_doc strings - "&" idle -done - "A-Za-z_0-9" inhere_name - -:brace Methods - * idle noeat - -:php_var Var - * idle noeat - "a-zA-Z_0-9-ÿ" php_var - -:var_indqstring Var - * string_dq recolor=-1 - "a-zA-Z_" var_indqstring - "\"" string_dq noeat - "\\" string_dq_esc recolor=-1 - -:var_inbqstring Var - * string_bq recolor=-1 - "a-zA-Z_" var_inbqstring - "\`" string_sq noeat - "\\" string_bq_esc recolor=-1 - -:maybe_method Methods - * idle recolor=-1 - "?" idle_qmark - "%" idle_hash - "#" sh_comment recolor=-1 - "/" slash - "0-9" first_digit recolor=-1 - "'" string_sq recolor=-1 - "\"" string_dq recolor=-1 - "a-zA-Z_" ident buffer - "$" php_var recolor=-1 - "{}" brace recolor=-1 - ">" method recolor=-2 - -:method Methods - * idle recolor=-1 - "a-zA-Z_" method recolor=-1 - -:idle_qmark Idle - * idle noeat - ">" idle recolor=-2 return - -:idle_hash Idle - * idle noeat - ">" idle recolor=-2 return - -:sh_comment Comment - * sh_comment - "\n" idle - -:slash Idle - * idle noeat - "*" comment recolor=-2 - "/" line_comment recolor=-2 - -:comment Comment - * comment - "*" maybe_end_comment - -:maybe_end_comment Comment - * comment - "/" idle - "*" maybe_end_comment - -:line_comment Comment - * line_comment - "\n" idle - - -:string_sq Constant_sq - * string_sq - "\'" idle - "\\" string_sq_esc recolor=-1 - -:string_sq_esc Escape - * string_sq - "\n" string_sq recolor=-2 - -:string_dq Constant - * string_dq - "$" var_indqstring recolor=-1 - "\"" idle - "\\" string_dq_esc recolor=-1 - -:string_dq_esc Escape - * string_dq - "\n" string_dq recolor=-2 - -:string_bq Constant - * string_bq - "$" var_inbqstring recolor=-1 - "\`" idle - "\\" string_bq_esc recolor=-1 - -:string_bq_esc Escape - * string_bq - "\n" string_bq recolor=-2 - -:first_digit Constant - * idle noeat - "xX" hex - "." float - "0" octal - "1-9" first_number - -:octal Constant - * idle noeat - "0-7" octal - -:hex Constant - * idle noeat - "0-9A-Fa-f" hex - -:first_number Constant - * idle noeat - "0-9" first_number - "." float - -:maybe_float Constant - * idle recolor=-2 noeat - "0-9" float recolor=-2 - -:float Constant - * idle noeat - "eE" epart - "0-9" float - -:epart Constant - * idle noeat - "0-9+\-" enum - -:enum Constant - * idle noeat - "0-9" enum - -:ident Idle - * idle noeat strings - "addslashes" meth - "array" meth - "array_keys" meth - "count" meth - "date" meth - "chr" meth - "empty" meth - "end" meth - "header" meth - "highlight_file" meth - "htmlspecialchars" meth - "isset" meth - "shuffle" meth - "strip_tags" meth - "strlen" meth - "strpos" meth - "strrpos" meth - "substr" meth - "trim" meth - "and" kw - "as" kw - "break" kw - "case" kw - "class" kw - "continue" kw - "declare" kw - "default" kw - "die" kw - "do" kw - "echo" kw - "else" kw - "elseif" kw - "eval" kw - "exception" kw - "exit" kw - "extends" kw - "for" kw - "foreach" kw - "function" kw - "global" kw - "if" kw - "include" kw - "include_once" kw - "list" kw - "new" kw - "or" kw - "print" kw - "private" kw - "public" kw - "require" kw - "require_once" kw - "return" kw - "static" kw - "switch" kw - "unset" kw - "while" kw -done - "a-zA-Z0-9_" ident - -:kw Keyword - * idle noeat - -:meth Methods - * idle noeat - -:var Var - * mark noeat - -.end diff --git a/powershell.jsf b/powershell.jsf deleted file mode 100644 index 3c0563f..0000000 --- a/powershell.jsf +++ /dev/null @@ -1,259 +0,0 @@ -# PowerShell syntax highlighting for Joe's Own Editor -# Oskar Liljeblad , 2014-02-11 -# -# PowerShell is the poor man's[1] replacement for a real shell such as Bash. -# [1] Someone who has to use Windows for whatever reason. -# -# Reference: http://www.microsoft.com/en-us/download/details.aspx?id=36389 -# Status: -# 1 100% -# 2.1 100% -# 2.2.1 100% except signature support -# 2.2.2 100% -# 2.2.3 100% except requires support -# 2.2.4 100% -# 2.3.1 100% -# 2.3.2 100% except automatic variables -# 2.3.3 100% no coloring -# 2.3.4 100% no coloring -# 2.3.5 100% no coloring -# 2.3.6 100% - -=Idle -=Comment green -=Constant cyan -=ConstEscape bold cyan -=Keyword bold -=Var magenta -=VarEscape bold magenta - -:idle Idle - * idle - "#" comment recolor=-1 - "$" var recolor=-1 - "@" var_array recolor=-1 - "<" idle1 - "\"" string_dq recolor=-1 - "'" string_sq recolor=-1 - "@" idle2 - "a-zA-Z_-" ident buffer - -:idle1 Idle - * idle noeat - "#" delim_comment recolor=-2 - -:idle2 Idle - * idle noeat - "\"" herestr_dq recolor=-2 - "'" herestr_sq recolor=-2 - -:comment Comment - * comment - "\r\n" idle - -:var_array Var - * idle noeat - "$?^" idle - "a-zA-Z_" var_name - -:var Var - * idle noeat - "{" var_brack - "$?^" idle - "a-zA-Z_" var_name - -:var_name Var - * idle noeat recolor=-1 - "a-zA-Z0-9_:?" var_name - -:var_brack Var - * var_brack - "`" var_escape recolor=-1 - "}" idle - -:var_escape VarEscape - * var_brack - -:delim_comment Comment - * delim_comment - "#" delim_comment1 - -:delim_comment1 Comment - * delim_comment noeat - ">" idle - -:kw Keyword - * idle noeat - -:string_dq Constant - * string_dq - "\"\n" idle - "$" string_dq_subst recolor=-1 - "`" string_dq_esc recolor=-1 - -:string_dq_subst Var - * string_dq noeat recolor=-2 - "a-zA-Z_" string_dq_subst_name - "{" string_dq_subst_brack - "(" string_dq_subst_parens - "`" string_dq_subst_escape recolor=-1 - -:string_dq_subst_name Var - * string_dq recolor=-1 noeat - "a-zA-Z0-9_:" string_dq_subst_name - "`" string_dq_subst_escape recolor=-1 - -:string_dq_subst_escape VarEscape - * string_dq_subst_name - -:string_dq_subst_brack Var - * string_dq_subst_brack - "}" string_dq - -:string_dq_subst_parens Var - * string_dq_sustr_parens - ")" string_dq - -:string_sq Constant - * string_sq - "\'\n" idle - -:string_dq_esc ConstEscape - * string_dq - -:string_sq_esc ConstEscape - * string_sq - -:herestr_dq Constant - * herestr_dq - "\"" herestr_dq1 - "$" herestr_dq_subst recolor=-1 - -:herestr_dq1 Constant - * herestr_dq noeat - "@" idle - -:herestr_dq_subst Var - * herestr_dq noeat recolor=-2 - "a-zA-Z_" herestr_dq_subst_name - "(" herestr_dq_subst_parens - "`" herestr_dq_subst_escape recolor=-1 - -:herestr_dq_subst_name Var - * herestr_dq recolor=-1 noeat - "a-zA-Z0-9_:" herestr_dq_subst_name - "`" herestr_dq_subst_escape recolor=-1 - -:herestr_dq_subst_escape VarEscape - * herestr_dq_subst_name - -:herestr_dq_subst_parens Var - * herestr_dq_subst_parens - ")" herestr_dq - -:herestr_sq Constant - * herestr_sq - "\'" herestr_sq1 - -:herestr_sq1 Constant - * herestr_sq noeat - "@" idle - -:ident Idle - * idle noeat istrings - "-and" kw - "-band" kw - "-bnot" kw - "-bor" kw - "-bxor" kw - "-not" kw - "-or" kw - "-xor" kw - "-f" kw - "-as" kw - "-ccontains" kw - "-ceq" kw - "-cge" kw - "-cgt" kw - "-cle" kw - "-clike" kw - "-clt" kw - "-cmatch" kw - "-cne" kw - "-cnotcontains" kw - "-cnotlike" kw - "-cnotmatch" kw - "-contains" kw - "-creplace" kw - "-csplit" kw - "-eq" kw - "-ge" kw - "-gt" kw - "-icontains" kw - "-ieq" kw - "-ige" kw - "-igt" kw - "-ile" kw - "-ilike" kw - "-ilt" kw - "-imatch" kw - "-in" kw - "-ine" kw - "-inotcontains" kw - "-inotlike" kw - "-inotmatch" kw - "-ireplace" kw - "-is" kw - "-isnot" kw - "-isplit" kw - "-join" kw - "-le" kw - "-like" kw - "-lt" kw - "-match" kw - "-ne" kw - "-notcontains" kw - "-notin" kw - "-notlike" kw - "-notmatch" kw - "-replace" kw - "-shl" kw - "-shr" kw - "-split" kw - "begin" kw - "break" kw - "catch" kw - "class" kw - "continue" kw - "data" kw - "define" kw - "do" kw - "dynamicparam" kw - "else" kw - "elseif" kw - "end" kw - "exit" kw - "filter" kw - "finally" kw - "for" kw - "foreach" kw - "from" kw - "function" kw - "if" kw - "in" kw - "inlinescript" kw - "parallel" kw - "param" kw - "process" kw - "return" kw - "switch" kw - "throw" kw - "trap" kw - "try" kw - "until" kw - "using" kw - "var" kw - "while" kw - "workflow" kw -done - "a-zA-Z_" ident diff --git a/prolog.jsf b/prolog.jsf deleted file mode 100644 index 3a6cf9c..0000000 --- a/prolog.jsf +++ /dev/null @@ -1,154 +0,0 @@ -# JOE syntax highlight file for Prolog - -=Idle -=Comment green -=Constant cyan -=Escape bold cyan -=Keyword bold -=Bad bold red - -=Brace #magenta -=Variable fg_310 -=Predicate red - -:idle Idle - * idle - "\n" idle - "%" line_comment recolor=-1 - "/" maybe_comment - "0-9" first_digit recolor=-1 - "'" string_sq_1 recolor=-1 - "\"" string_dq_1 recolor=-1 - - # marking -> predicate hilite - # buffering -> keyword hilite - "a-z" atom mark buffer - - "A-Z" variable recolor=-1 - "_" _variable - "[]" brace recolor=-1 - -:line_comment Comment - * line_comment - "\n" idle - -:maybe_comment Idle - * idle noeat - "*" comment recolor=-2 - -:comment Comment - * comment - "*" maybe_end_comment - -:maybe_end_comment Comment - * comment - "/" idle - "*" maybe_end_comment - -:brace Brace - * idle noeat - -:string_sq_1 Constant - * string_sq noeat - -:string_sq Constant - * string_sq - "\'" idle - "\\" string_sq_esc recolor=-1 - -:string_sq_esc Escape - * string_sq - "\n" string_sq recolor=-2 - -:string_dq_1 Constant - * string_dq noeat - -:string_dq Constant - * string_dq - "\"" idle - "\\" string_dq_esc recolor=-1 - -:string_dq_esc Escape - * string_dq - "\n" string_dq recolor=-2 - -:first_digit Constant - * idle noeat - # no float support -# "." float - "0-9" first_number - -:first_number Constant - * idle noeat - "0-9" first_number - "." float - -:float Constant - * idle noeat - "eE" epart - "0-9" float - -:epart Constant - * idle noeat - "0-9+\-" enum - -:enum Constant - * idle noeat - "0-9" enum - -# list of keywords includes some predicates... -:atom Idle - * atom_end noeat markend strings - "append" kw - "atom" kw - "atomic" kw - "call" kw - "catch" kw - "clause" kw - "close" kw - "fail" kw - "findall" kw - "float" kw - "halt" kw - "integer" kw - "is" kw - "member" kw - "nl" kw - "nonvar" kw - "number" kw - "once" kw - "op" kw - "open" kw - "read" kw - "repeat" kw - "throw" kw - "true" kw - "var" kw - "write" kw -done - "a-zA-Z0-9_" atom - -:kw Keyword - * idle noeat - -:atom_end Idle - * idle noeat - " " atom_end - "(" pred_end recolormark - ":" maybe_pred_end - -:pred_end Predicate - * idle noeat - -:maybe_pred_end Idle - * idle noeat - "-" pred_end recolormark - -:variable Variable - * idle noeat - "a-zA-Z0-9_" variable - -:_variable Idle - * idle noeat - # if it's not only _, color it - "a-zA-Z0-9_" variable recolor=-2 diff --git a/properties.jsf b/properties.jsf deleted file mode 100644 index 3ae0948..0000000 --- a/properties.jsf +++ /dev/null @@ -1,85 +0,0 @@ -# JOE syntax highlight file for properties files - -=Idle -=Comment green -=Constant cyan -=Escape bold cyan -=Bad bold red - -=Key -=KeyEscape bold -=Separator bold - -:line_start Idle - * key noeat - "\n" line_start - " \t\r" line_start # leading spaces - "#!" line_comment recolor=-1 - "=:" missing_key recolor=-1 - -:line_comment Comment - * line_comment - "\n" line_start - -:missing_key Bad - * value_pre noeat - -:key Key - * key - "\\" key_esc recolor=-1 - " \t\r" key_post noeat - "=:" sep recolor=-1 - "\n" key_error recolor=-2 - -# one escaped char -:key_esc KeyEscape - * key - "\n" key_error recolor=-2 - -:key_post Idle - * value_pre noeat - " \t\r" key_post - "=:" sep recolor=-1 - -:key_error Bad - * key noeat - -:sep Separator - * value_pre noeat - -:value_pre Idle - * value noeat - " \t\r" value_pre - -:value Constant - * value - "\\" value_esc recolor=-1 - "\n" line_start - -:value_esc Escape - * value_error recolor=-2 - "u" value_unicode_hex1 - "\n" value_cont - -:value_unicode_hex1 Escape - * value_error recolor=-3 - "A-Fa-f0-9" value_unicode_hex2 - -:value_unicode_hex2 Escape - * value_error recolor=-4 - "A-Fa-f0-9" value_unicode_hex3 - -:value_unicode_hex3 Escape - * value_error recolor=-5 - "A-Fa-f0-9" value_unicode_hex4 - -:value_unicode_hex4 Escape - * value_error recolor=-6 - "A-Fa-f0-9" value - -:value_cont Constant - * value - " \t\r" value_cont # leading spaces - -:value_error Bad - * value noeat diff --git a/puppet.jsf b/puppet.jsf deleted file mode 100644 index 3a8e9e4..0000000 --- a/puppet.jsf +++ /dev/null @@ -1,159 +0,0 @@ -# JOE syntax highlight file for Puppet - -=Idle -=Comment green -=CommentLabel bold green -=Constant cyan -=Escape bold cyan -=Type bold -=Keyword bold -=Bad bold red -=Var fg_310 # brown -=Brace magenta - -=KeywordAttr bold - -:idle Idle - * idle - "\n" idle - "#" line_comment recolor=-1 - "{[]}" brace recolor=-1 - "0" first_digit recolor=-1 - "1-9" decimal recolor=-1 - "\"" string recolor=-1 - "'" char recolor=-1 - "/" slash - "$" variable recolor=-1 - "A-Z" type recolor=-1 - "a-z" ident buffer - -:line_comment Comment - * line_comment - "\n" idle - -:comment Comment - * comment - "*" maybe_end_comment - -:maybe_end_comment Comment - * comment noeat - "/" idle - "*" maybe_end_comment - -:brace Brace - * idle noeat - -# that's not completely accurate since a regex may start with a * too -:slash Idle - * regex noeat recolor=-2 - "*" comment recolor=-2 - -:first_digit Constant - * idle noeat - "0-7" octal - "89" bad_number recolor=-1 - -:bad_number Bad - * idle noeat - "0-9" bad_number - -:octal Constant - * idle noeat - "0-7_" octal - "89" bad_number recolor=-1 - -:decimal Constant - * idle noeat - "0-9_" decimal - -:char Constant - * char - "'" idle - -:string Constant - * string - "\"" idle - "$" maybe_string_subst recolor=-1 - -:maybe_string_subst Constant - * string noeat - "{" string_subst recolor=-2 - -:string_subst Escape - * string_subst - "}" string - -:regex Constant - * regex - "\\" regex_quote recolor=-1 - "/" idle - -:regex_quote Escape - * regex - -:variable Var - * idle noeat - "a-zA-Z0-9_" variable - -:type Type - * idle noeat - "a-zA-Z0-9_" type - -:ident Idle - * idle noeat strings - "case" kw - "class" kw - "define" kw - "else" kw - "elsif" kw - "false" kw - "if" kw - "in" kw - "inherits" kw - "true" kw - "undef" kw - # prominent attrs - "ensure" kw_attr - "default" kw_attr - # methods - "alert" method - "create_resources" method - "crit" method - "debug" method - "defined" method - "emerg" method - "err" method - "extlookup" method - "fail" method - "file" method - "fqdn_rand" method - "generate" method - "include" method - "info" method - "inline_template" method - "md5" method - "notice" method - "realize" method - "regsubst" method - "require" method - "search" method - "sha1" method - "shellquote" method - "split" method - "sprintf" method - "tag" method - "tagged" method - "template" method - "versioncmp" method - "warning" method -done - "a-zA-Z0-9_" ident - -:kw Keyword - * idle noeat - -:kw_attr KeywordAttr - * idle noeat - -:method Keyword - * idle noeat diff --git a/python.jsf b/python.jsf deleted file mode 100644 index bad098a..0000000 --- a/python.jsf +++ /dev/null @@ -1,248 +0,0 @@ -# JOE syntax highlight file for Python - -# TODO: -# * octal escape sequences -# * highlight function and class names? - -=Idle -=Comment green -=CommentLabel bold green -=Docstring green -=DocstringLabel bold green -=DocEscape bold cyan -=Constant cyan -=Escape bold cyan -=Keyword bold -=Bad bold red -=Brace magenta - -=PrivateMember fg_310 # brown -=Decorator red - -:idle Idle - * idle - "#" comment recolor=-1 - "0-9" first_digit recolor=-1 - "'" string_sq_1 recolor=-1 - "\"" string_dq_1 recolor=-1 - "a-zA-Z_" ident noeat - "{}" brace recolor=-1 - "@" decorator recolor=-1 - -:brace Brace - * idle noeat - -# annotations -:decorator Decorator - * decorator - " (\t\r\n" idle noeat - -:comment Comment - * comment - # might be TODO label - "BFHNTX" comment noeat call=.comment_todo() - "\n" idle - -:string_sq_1 Constant - * string_sq noeat - "'" string_sq_2 - -:string_sq_2 Constant - * idle noeat - "'" docstr_sq recolor=-3 - -:string_sq Constant - * string_sq - "\'" idle - "\\" string_sq_esc recolor=-1 - -:string_sq_esc Escape - * string_sq - "\n" string_sq recolor=-2 - -:docstr_sq Docstring - * docstr_sq - # might be TODO label - "BFHNTX" docstr_sq noeat call=.comment_todo_docstr() - "\\" docstr_sq_esc recolor=-1 - "'" docstr_sq_1 - -:docstr_sq_1 Docstring - * docstr_sq noeat - "'" docstr_sq_2 - -:docstr_sq_2 Docstring - * docstr_sq noeat - "'" idle - -:docstr_sq_esc DocEscape - * docstr_sq - "\n" docstr_sq recolor=-2 - -:string_dq_1 Constant - * string_dq noeat - "\"" string_dq_2 - -:string_dq_2 Constant - * idle noeat - "\"" docstr_dq recolor=-3 - -:string_dq Constant - * string_dq - "\"" idle - "\\" string_dq_esc recolor=-1 - -:string_dq_esc Escape - * string_dq - "\n" string_dq recolor=-2 - -:docstr_dq Docstring - * docstr_dq - # might be TODO label - "BFHNTX" docstr_dq noeat call=.comment_todo_docstr() - "\\" docstr_dq_esc recolor=-1 - "\"" docstr_dq_1 - -:docstr_dq_1 Docstring - * docstr_dq noeat - "\"" docstr_dq_2 - -:docstr_dq_2 Docstring - * docstr_dq noeat - "\"" idle - -:docstr_dq_esc DocEscape - * docstr_dq - "\n" docstr_dq recolor=-2 - -:first_digit Constant - * idle noeat - "xX" hex - "." float - "0-9" first_number - -:hex Constant - * idle noeat - "0-9A-Fa-f" hex - -:first_number Constant - * idle noeat - "0-9" first_number - "." float - -:maybe_float Constant - * idle recolor=-2 noeat - "0-9" float recolor=-2 - -:float Constant - * idle noeat - "eE" epart - "0-9" float - -:epart Constant - * idle noeat - "0-9+\-" enum - -:enum Constant - * idle noeat - "0-9" enum - -:ident Idle - * ident1 noeat buffer - "_" priv_member recolor=-1 - -:ident1 Idle - * idle noeat strings - "and" kw - "assert" kw - "break" kw - "class" kw - "continue" kw - "def" kw - "del" kw - "elif" kw - "else" kw - "except" kw - "exec" kw - "finally" kw - "for" kw - "from" kw - "global" kw - "if" kw - "import" kw - "in" kw - "is" kw - "lambda" kw - "not" kw - "or" kw - "pass" kw - "print" kw - "raise" kw - "return" kw - "try" kw - "while" kw - "yield" kw - # quasi-keywords - "False" lit - "None" lit - "True" lit -done - "a-zA-Z0-9_" ident1 - -:kw Keyword - * idle noeat - -:lit Keyword - * idle noeat - -:priv_member PrivateMember - * idle noeat - "a-zA-Z0-9_" priv_member - -.subr comment_todo -# initial state -:comment_todo_init Comment - * comment_todo_guess buffer - -# highlight common TODO labels -:comment_todo_guess Comment - * comment_todo_unknown noeat strings - "BUG" comment_todo - "FIXME" comment_todo - "HACK" comment_todo - "NOTE" comment_todo - "TODO" comment_todo - "XXX" comment_todo -done - "A-Z" comment_todo_guess - -:comment_todo_unknown Comment - * NULL noeat return - -:comment_todo CommentLabel - * NULL noeat return -.end - -.subr comment_todo_docstr -# initial state -:comment_todo_init Docstring - * comment_todo_guess buffer - -# highlight common TODO labels -:comment_todo_guess Docstring - * comment_todo_unknown noeat strings - "BUG" comment_todo - "FIXME" comment_todo - "HACK" comment_todo - "NOTE" comment_todo - "TODO" comment_todo - "XXX" comment_todo -done - "A-Z" comment_todo_guess - -:comment_todo_unknown Docstring - * NULL noeat return - -:comment_todo DocstringLabel - * NULL noeat return -.end diff --git a/ruby.jsf b/ruby.jsf deleted file mode 100644 index 447ba41..0000000 --- a/ruby.jsf +++ /dev/null @@ -1,596 +0,0 @@ -# JOE syntax highlight file for Ruby - -# Oh No! It's another perl! - -# <" NULL recolor=-2 return - -:pod_start Idle - * pod_start - "\n" pod_block - -:pod_block POD - * pod_block - "=" pod_ident buffer - -:pod_ident POD - * pod_block noeat strings - "=end" rest -done - "a-zA-Z0-9_" pod_ident - -:maybe_inc Idle - * after_term noeat - "<" maybe_inc1 - -:maybe_inc1 Idle - * after_term noeat - "-" allow_space - "'\"" quoted_inc_start save_c recolor=-1 - "A-Za-z_" inc buffer noeat - -:allow_space Idle - * after_term noeat - "'\"" quoted_inc_start_allow save_c recolor=-1 - "A-Za-z_" inc_allow buffer noeat - -:quoted_inc_start Var - * quoted_inc buffer - -:quoted_inc_start_allow Var - * quoted_inc_allow buffer - -:quoted_inc Var - * quoted_inc - & skipline save_s - -:quoted_inc_allow Var - * quoted_inc_allow - & skipline_allow save_s - -:inc Var - * skipline save_s noeat - "A-Za-z0-9_" inc - -:inc_allow Var - * skipline_allow save_s noeat - "A-Za-z0-9_" inc_allow - -# Should be treated as a normal line here... - -:skipline Idle - * skipline - "\n" next_line - -:skipline_allow Idle - * skipline_allow - "\n" next_line_allow - -:todelim Constant - * todelim - "\n" next_line strings - "&" founddelim -done - -:todelim_allow Constant - * todelim_allow - "\n" next_line_allow strings - "&" founddelim -done - -# eat \n so it's not in string. -:next_line Constant - * todelim buffer - "\n" next_line - -:next_line_allow Constant - * todelim_allow buffer - " \t\n" next_line_allow - -:founddelim Var - * idle noeat - -:regex Constant - * regex - "\\" regex_quote recolor=-1 - "/" after_term - -:regex_quote Escape - * regex - -:not_string Idle - * rest noeat - "a-zA-Z0-9_" global_var recolor=-2 - "\"'`#/" rest - -:brace Brace - * rest noeat - -:line_comment Comment - * line_comment -.ifdef erb - "%" line_comment_maybe_erb_end -.endif - # might be TODO label - "BFHNTX" line_comment noeat call=.comment_todo() -.ifdef haml - "\n" NULL return -.else - "\n" idle -.endif - -:line_comment_maybe_erb_end Comment - ">" NULL recolor=-2 return - -:end_of_file_comment Comment - * end_of_file_comment - -:first_digit Constant - * after_term noeat - "x" hex - "b" binary - "." float - "eE" epart - "0-7" octal - "89" bad_number recolor=-1 - -:bad_number Bad - * after_term noeat - "0-9" bad_number - -:octal Constant - * after_term noeat - "0-7_" octal - "89" bad_number recolor=-1 - -:binary Constant - * after_term noeat - "01_" binary - "2-9" bad_number recolor=-1 - -:hex Constant - * after_term noeat - "0-9A-Fa-f_" hex - -:decimal Constant - * after_term noeat - "0-9_" decimal - "eE" epart - "." float - -:float Constant - * after_term noeat - "eE" epart - "0-9_" float - -:epart Constant - * after_term noeat - "0-9+\-" enum - -:enum Constant - * after_term noeat - "0-9_" enum - -:string Constant - * string - "\"" after_term - "\\" string_escape recolor=-1 - "#" maybe_string_subst recolor=-1 - -:maybe_string_subst Constant - * string noeat - "{" string_subst recolor=-2 - -:string_subst Escape - * string_subst - "}" string - -:string_escape Escape - * string - "x" string_hex1 - "c" string_ctrl - "N" string_named - "0-7" string_octal2 - "\n" string recolor=-2 - -:string_named Escape - * string - "{" string_named_rest - -:string_named_rest Escape - * string_named_rest - "}" string - -:string_ctrl Escape - * string - -:string_hex1 Escape - * string noeat - "{" string_unicode - "0-9a-fA-F" string_hex2 - -:string_unicode Escape - * string_unicode - "}" string - -:string_hex2 Escape - * string noeat - "0-9a-fA-F" string - -:string_octal2 Escape - * string noeat - "0-7" string_octal3 - -:string_octal3 Escape - * string noeat - "0-7" string - -# Only \\ and \' allowed in single quoted strings - -:char Constant - * char - "\n" reset - "'" after_term - "\\" char_escape recolor=-1 - -:char_escape Escape - * char recolor=-2 - "\\'" char - -:backtick Constant - * backtick - "`" after_term - "\\" backtick_escape recolor=-1 - "$@" backtick_subst recolor=-1 - -:backtick_subst Escape - * backtick noeat recolor=-1 - "a-zA-Z_0-9" backtick_subst - -:backtick_escape Escape - * backtick - "x" backtick_hex1 - "c" backtick_ctrl - "N" backtick_named - "0-7" backtick_octal2 - "\n" backtick recolor=-2 - -:backtick_named Escape - * backtick - "{" backtick_named_rest - -:backtick_named_rest Escape - * backtick_named_rest - "}" backtick - -:backtick_ctrl Escape - * backtick - -:backtick_hex1 Escape - * backtick noeat - "{" backtick_unicode - "0-9a-fA-F" backtick_hex2 - -:backtick_unicode Escape - * backtick_unicode - "}" backtick - -:backtick_hex2 Escape - * backtick noeat - "0-9a-fA-F" backtick - -:backtick_octal2 Escape - * backtick noeat - "0-7" backtick_octal3 - -:backtick_octal3 Escape - * backtick noeat - "0-7" backtick - -:ident_no_kw Idle - * after_term noeat - "0" first_digit recolor=-1 - "1-9" decimal recolor=-1 - "a-zA-Z_" ident_no_kw1 - -:ident_no_kw1 Idle - * after_term noeat - "a-zA-Z0-9_?!" ident_no_kw1 - -:ident Idle - * after_term noeat strings - "BEGIN" kw - "END" kw - "alias" kw - "and" kw - "begin" kw - "break" kw - "case" kw - "catch" kw - "class" kw_class - "def" kw - "defined" kw - "do" kw - "else" kw - "elsif" kw - "end" kw - "ensure" kw - "fail" kw - "false" kw - "for" kw - "if" kw - "in" kw - "lambda" kw - "module" kw - "next" kw - "nil" kw - "not" kw - "or" kw - "private" kw - "proc" kw - "protected" kw - "public" kw - "raise" kw - "redo" kw - "rescue" kw - "retry" kw - "return" kw - "self" kw - "super" kw - "then" kw - "throw" kw - "true" kw - "undef" kw - "unless" kw - "until" kw - "when" kw - "while" kw - "yield" kw - # quasi-keywords (Module or Kernel methods) - "require" kw - "autoload" kw - "extend" kw - "include" kw - "puts" kw - "exit" kw - "attr_accessor" kw - "attr_reader" kw - "attr_writer" kw - "module_function" kw -done - # allowing ?! is not nearly correct but fixes more than - # it destructs - "a-zA-Z0-9_?!" ident - -:kw Keyword - * rest noeat - -:kw_class Keyword - * rest noeat - " \t\n" kw_class_space - -:kw_class_space Idle - * rest noeat - # first char should be uppercase letter - "a-zA-Z_" kw_class_decl noeat - " \t\n" kw_class_space - -:kw_class_decl ClassDecl - * rest noeat - "a-zA-Z0-9_" kw_class_decl - -:pstring Idle - * match noeat - " \t" after_term noeat - "xrqQwW" match -.ifdef erb - ">" NULL recolor=-2 return -.endif - -:match Idle - * inmatch save_c recolor=-1 - " \t" match - -:inmatch Constant - * inmatch - & after_term - "\\" inmatch_quote recolor=-1 - -:inmatch_quote Escape - * inmatch - -:subst Idle - * insubst save_c recolor=-1 - "<([{`" delim_insubst save_c recolor=-1 - " \t" subst - -:insubst Constant - * insubst - & inrepl - "\\" insubst_quote recolor=-1 - -:insubst_quote Escape - * insubst - -:inrepl Constant - * inrepl - & after_term - "\\" inrepl_quote - -:inrepl_quote Escape - * inrepl - -:delim_insubst Constant - * delim_insubst - & delim_repl - "\\" delim_quote - -:delim_quote Escape - * delim_insubst - -:delim_repl Constant - * repl save_c recolor=-1 - " \t" delim_repl - -:repl Constant - * repl - & after_term - "\\" repl_quote - -:repl_quote Escape - * repl - -:maybe_symbol Idle - * rest noeat - # prevent wrong Module::Member detection - ":" rest - # first char mustn't be 0-9 - "a-zA-Z_" symbol recolor=-2 - "\"" symbol_str recolor=-2 - "'" symbol_str_sq recolor=-2 - -:symbol Symbol - * rest noeat - "a-zA-Z0-9_?!" symbol - -:symbol_str Symbol - * symbol_str - "\"" after_term - "#" symbol_maybe_str_subst recolor=-1 - -:symbol_maybe_str_subst Symbol - * symbol_str - "{" symbol_str_subst recolor=-2 - -:symbol_str_subst SymbolEscape - * symbol_str_subst - "}" symbol_str - -:symbol_str_sq Symbol - * symbol_str_sq - "'" after_term - -:proc_arg ProcArg - * rest noeat - "," proc_arg_sep noeat - "a-zA-Z_" proc_arg - -:proc_arg_sep Idle - * proc_arg - -:class_member1 Idle - * rest noeat - "a-zA-Z_" class_member recolor=-2 - "@" class_member2 - -:class_member2 ClassMember - * rest noeat - "a-zA-Z_" class_member recolor=-3 - -:class_member ClassMember - * rest noeat - "a-zA-Z0-9_" class_member - -:global_var GlobalVar - * rest noeat - "a-zA-Z0-9_" global_var - -.end - -.subr comment_todo -# initial state -:comment_todo_init Comment - * comment_todo_guess buffer - -# highlight common TODO labels -:comment_todo_guess Comment - * comment_todo_unknown noeat strings - "BUG" comment_todo - "FIXME" comment_todo - "HACK" comment_todo - "NOTE" comment_todo - "TODO" comment_todo - "XXX" comment_todo -done - "A-Z" comment_todo_guess - -:comment_todo_unknown Comment - * NULL noeat return - -:comment_todo CommentLabel - * NULL noeat return -.end diff --git a/sieve.jsf b/sieve.jsf deleted file mode 100644 index 1b31994..0000000 --- a/sieve.jsf +++ /dev/null @@ -1,105 +0,0 @@ -# JOE syntax highlight file for Sieve - -=Idle -=Comment green -=Constant cyan -=Escape bold cyan -=Keyword bold -=Bad bold red -=Brace magenta - -=TaggedArgument red - -:idle Idle - * idle - "#" line_comment recolor=-1 - "/" maybe_comment - "1-9" decimal recolor=-1 - "\"" string recolor=-1 - "[]{}" brace recolor=-1 - ":" maybe_tagged_arg - "a-zA-Z_" ident buffer - -:brace Brace - * idle noeat - -:line_comment Comment - * line_comment - "\n" idle - -:maybe_comment Idle - * idle noeat - "*" comment recolor=-2 - -:comment Comment - * comment - "*" maybe_end_comment - -:maybe_end_comment Comment - * comment noeat - "/" idle - -:decimal Constant - * idle noeat - "0-9" decimal - "KMG" decimal_suffix - -:decimal_suffix Constant - * idle noeat - -:string Constant - * string - "\"" idle - "\\" string_escape recolor=-1 - -:string_escape Escape - * string_bad_escape recolor=-1 - "\\" string - "\"" string - -:string_bad_escape Bad - * string noeat - -:maybe_tagged_arg Idle - * idle noeat - "a-zA-Z_" tagged_arg recolor=-2 - -:tagged_arg TaggedArgument - * idle noeat - "a-zA-Z0-9_" tagged_arg - -:ident Idle - * idle noeat strings - # control" - "else" kw - "elsif" kw - "if" kw - "require" kw - "stop" kw - # commands - "discard" cmd - "fileinto" cmd - "keep" cmd - "redirect" cmd - # tests - "address" test - "allof" test - "anyof" test - "envelope" test - "exists" test - "false" test - "header" test - "not" test - "size" test - "true" test -done - "a-zA-Z0-9_" ident - -:kw Keyword - * idle noeat - -:cmd Idle - * idle noeat - -:test Idle - * idle noeat diff --git a/sql.jsf b/sql.jsf index 8af44a1..4521768 100644 --- a/sql.jsf +++ b/sql.jsf @@ -35,7 +35,7 @@ "." maybe_float "\"" string recolor=-1 "'" char recolor=-1 - "a-zA-Z_@" ident buffer + "\i@" ident buffer "{}" brace recolor=-1 ",:;=()><[]*&|!~+%^" control recolor=-1 @@ -226,7 +226,7 @@ "count" kw "counter" kw "create" kw -# "currency" kw + "currency" kw "current_date" kw "current_time" kw "current_timestamp" kw @@ -409,7 +409,7 @@ "usage" kw "user" kw "using" kw -# "value" kw + "value" kw "values" kw "var" kw "varbinary" kw @@ -485,7 +485,7 @@ "deterministic" kw "list" kw done - "a-zA-Z0-9_" ident + "\c" ident :type Type * idle noeat diff --git a/terraform.jsf b/terraform.jsf index 518a8fb..1fc9409 100644 --- a/terraform.jsf +++ b/terraform.jsf @@ -2,7 +2,6 @@ =Idle =Comment green -=CommentLabel bold green =Constant cyan =Escape bold cyan =Bad bold red @@ -30,7 +29,7 @@ :comment Comment * comment # might be TODO label - "BFHNTX" comment noeat call=.comment_todo() + "BFHNTX" comment noeat call=comment_todo.comment_todo() "*" maybe_end_comment :maybe_end_comment Comment @@ -148,27 +147,3 @@ done :bool Constant * idle noeat - -.subr comment_todo -# initial state -:comment_todo_init Comment - * comment_todo_guess buffer - -# highlight common TODO labels -:comment_todo_guess Comment - * comment_todo_unknown noeat strings - "BUG" comment_todo - "FIXME" comment_todo - "HACK" comment_todo - "NOTE" comment_todo - "TODO" comment_todo - "XXX" comment_todo -done - "A-Z" comment_todo_guess - -:comment_todo_unknown Comment - * NULL noeat return - -:comment_todo CommentLabel - * NULL noeat return -.end diff --git a/tex.jsf b/tex.jsf deleted file mode 100644 index c575669..0000000 --- a/tex.jsf +++ /dev/null @@ -1,108 +0,0 @@ -# joe [La]TeX syntax highlighting - -=Idle -=Comment green -=CommentLabel bold green -=Keyword bold -=Mathmode cyan -=Brace magenta -=Parameter bold blue -=Bad bold red - -:idle Idle - * idle - "%" comment recolor=-1 - "$" math recolor=-1 - "\\" command recolor=-1 - "{[]}" brace recolor=-1 - "#" parameter recolor=-1 - -:comment Comment - * comment - # might be TODO label - "BFHNTX" comment noeat call=.comment_todo() - "\n" idle - -:math Mathmode - * math - "\\" math_command recolor=-1 - "{[]}" math_brace recolor=-1 - "$" idle - -:math_command Keyword - * math - "a-zA-Z@" math_command2 - -:math_command2 Keyword - * math noeat - "a-zA-Z@" math_command2 - -:parameter Parameter - * idle noeat - "0-9" idle - -:brace Brace - * idle noeat - -:math_brace Brace - * math noeat - -:command Keyword - * idle - "a-zA-Z@" command2 buffer - -:command2 Keyword - * idle noeat strings -# "begin" env_begin - "verb" verbatim -done - "a-zA-Z@" command2 - -:verbatim Keyword - * verbatim1 save_c - -:verbatim1 Idle - * verbatim1 - & end_verbatim recolor=-1 - -:end_verbatim Keyword - * idle noeat - -#:env_begin Keyword -# * env_begin1 noeat - -#:env_begin1 Idle -# * env_begin1 -# "{" env_begin_brace recolor=-1 - -#:env_begin_brace Brace -# * env_begin_name noeat buffer - -#:env_begin_name Bad -# * env_begin_name -# "}" idle noeat - - -.subr comment_todo -# initial state -:comment_todo_init Comment - * comment_todo_guess buffer - -# highlight common TODO labels -:comment_todo_guess Comment - * comment_todo_unknown noeat strings - "BUG" comment_todo - "FIXME" comment_todo - "HACK" comment_todo - "NOTE" comment_todo - "TODO" comment_todo - "XXX" comment_todo -done - "A-Z" comment_todo_guess - -:comment_todo_unknown Comment - * NULL noeat return - -:comment_todo CommentLabel - * NULL noeat return -.end diff --git a/whitespace.jsf b/whitespace.jsf deleted file mode 100644 index 3b11bf5..0000000 --- a/whitespace.jsf +++ /dev/null @@ -1,16 +0,0 @@ -# JOE syntax highlight file for Whitespace - -=Idle -=Space inverse red -=Tab inverse green - -:idle Idle - * idle - " " space recolor=-1 - "\t" tab recolor=-1 - -:space Space - * idle noeat - -:tab Tab - * idle noeat