From 341a5f0dc8c6ef945961123898a3e0da85fb9492 Mon Sep 17 00:00:00 2001 From: cn Date: Tue, 22 Nov 2011 10:13:36 +0100 Subject: [PATCH 1/3] TeX: add recognition of \verb+foo+ commands The delimiter after \verb may vary, highlighting it is supported through delim buffer of JOE. --- tex.jsf | 45 +++++++++++++++++++++++++++++++++++++-------- 1 file changed, 37 insertions(+), 8 deletions(-) diff --git a/tex.jsf b/tex.jsf index f5333b4..c575669 100644 --- a/tex.jsf +++ b/tex.jsf @@ -7,6 +7,7 @@ =Mathmode cyan =Brace magenta =Parameter bold blue +=Bad bold red :idle Idle * idle @@ -28,14 +29,6 @@ "{[]}" math_brace recolor=-1 "$" idle -:command Keyword - * idle - "a-zA-Z@" command2 - -:command2 Keyword - * idle noeat - "a-zA-Z@" command2 - :math_command Keyword * math "a-zA-Z@" math_command2 @@ -54,6 +47,42 @@ :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 From dead2a7d3cfb8e4914c01bb2e2e92b9a276faf93 Mon Sep 17 00:00:00 2001 From: cn Date: Sun, 27 Nov 2011 11:07:46 +0100 Subject: [PATCH 2/3] ftyperc: wordwrap is nice, sometimes. --- ftyperc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ftyperc b/ftyperc index 58f98da..c42bd61 100644 --- a/ftyperc +++ b/ftyperc @@ -57,7 +57,7 @@ TeX *.tex --wordwrap + -wordwrap -syntax tex -tex_comment -no_double_quoted From 605b0c088eb7207f10228217363c95fa0ff8e392 Mon Sep 17 00:00:00 2001 From: cn Date: Thu, 19 Jan 2012 12:04:13 +0100 Subject: [PATCH 3/3] ruby: accept %W (same as %w) strings, too --- ruby.jsf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ruby.jsf b/ruby.jsf index d1285c9..bf53c41 100644 --- a/ruby.jsf +++ b/ruby.jsf @@ -457,7 +457,7 @@ done :pstring Idle * match noeat " \t" after_term noeat - "xrqQw" match + "xrqQwW" match .ifdef erb ">" NULL recolor=-2 return .endif