zsh-workers
 help / color / mirror / code / Atom feed
* [PATCH 0/3] Update ruby/irb/erb completions
@ 2022-12-27  2:31 Shohei YOSHIDA
  2022-12-27  2:31 ` [PATCH 1/3] Update ruby completion for version 3.2.0 Shohei YOSHIDA
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Shohei YOSHIDA @ 2022-12-27  2:31 UTC (permalink / raw)
  To: zsh-workers; +Cc: Shohei YOSHIDA

Update ruby/irb/erb completions based on Ruby 3.2.0.

Shohei YOSHIDA (3):
  Update ruby completion for version 3.2.0
  Add irb completion for version 1.6.2
  Update erb completion for version 4.0.2

 Completion/Unix/Command/_ruby | 48 +++++++++++++++++++++++++----------
 1 file changed, 34 insertions(+), 14 deletions(-)

--
2.37.2


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH 1/3] Update ruby completion for version 3.2.0
  2022-12-27  2:31 [PATCH 0/3] Update ruby/irb/erb completions Shohei YOSHIDA
@ 2022-12-27  2:31 ` Shohei YOSHIDA
  2022-12-27  2:31 ` [PATCH 2/3] Add irb completion for version 1.6.2 Shohei YOSHIDA
  2022-12-27  2:31 ` [PATCH 3/3] Update erb completion for version 4.0.2 Shohei YOSHIDA
  2 siblings, 0 replies; 4+ messages in thread
From: Shohei YOSHIDA @ 2022-12-27  2:31 UTC (permalink / raw)
  To: zsh-workers; +Cc: Shohei YOSHIDA

---
 Completion/Unix/Command/_ruby | 27 +++++++++++++++++----------
 1 file changed, 17 insertions(+), 10 deletions(-)

diff --git a/Completion/Unix/Command/_ruby b/Completion/Unix/Command/_ruby
index 0e1f5dbc0..9b182693f 100644
--- a/Completion/Unix/Command/_ruby
+++ b/Completion/Unix/Command/_ruby
@@ -40,20 +40,27 @@ opts=(
   '(-v)--verbose[turn on verbose mode and disable script from stdin]'
   '-x-[strip off text before #!ruby line and perhaps cd to directory]:directory:_files -/'
   '(1 * -)--copyright[print the copyright]'
-  --{en,dis}'able=[enable or disable features]:feature:(gems did_you_mean rubyopt frozen_string_literal jit all)'
+  --{en,dis}'able=[enable or disable features]:feature:(gems error_highlight did_you_mean syntax_suggest rubyopt frozen_string_literal mjit yjit all)'
   \!--{en,dis}able-{gems,rubyopt,all}
-  '--dump=[dump debug information]:information:_sequence compadd - insns yydebug parsetree parsetree_with_comment'
+  '--dump=[dump debug information]:information:_sequence compadd - insns insns_without_opt yydebug parsetree parsetree_with_comment'
   --{external,internal}'-encoding=:charset:->charsets'
   '!'{-y,--yydebug}
   '!--dump=:target:(version copyright usage yydebug syntax parsetree parsetree_with_comment insns)'
-  '--jit[enable jit with default options]'
-  '--jit-warnings[enable printing JIT warnings]'
-  '--jit-debug[enable JIT debugging (very slow)]'
-  '--jit-wait[wait until JIT compilation finishes every time (for testing)]'
-  '--jit-save-temps[save JIT temporary files]'
-  '--jit-verbose=-[print JIT logs of level num or less to stderr]:maximum log level [0]'
-  '--jit-max-cache=-[specify max number of methods to be JIT-ed in a cache]:number [100]'
-  '--jit-min-calls=-[specify number of calls to trigger JIT]:calls [10000]'
+  '(--mjit --yjit)--jit[enable jit for the platform]'
+  '(--jit --yjit)--mjit[enable C compiler-based JIT compiler]'
+  '(--jit --mjit)--yjit[enable in-process JIT compiler]'
+  '--mjit-warnings[enable printing JIT warnings]'
+  '--mjit-debug[enable JIT debugging (very slow)]'
+  '--mjit-wait[wait until JIT compilation finishes every time (for testing)]'
+  '--mjit-save-temps[save JIT temporary files]'
+  '--mjit-verbose=-[print JIT logs of level num or less to stderr]:maximum log level [0]'
+  '--mjit-max-cache=-[specify max number of methods to be JIT-ed in a cache]:number [100]'
+  '--mjit-min-calls=-[specify number of calls to trigger JIT]:calls [10000]'
+  '--yjit-stat[enable collecting YJIT statistics]'
+  '--yjit-exec-mem-size=-[size of executable memory block in MiB]:mem size'
+  '--yjit-call-threshold=-[number of calls to trigger JIT]:number'
+  '--yjit-max-versions=-[maximum number of versions per basic block]:versions'
+  '--yjit-greedy-versioning[greedy versioning mode]'
 )
 
 irb=(
-- 
2.37.2



^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH 2/3] Add irb completion for version 1.6.2
  2022-12-27  2:31 [PATCH 0/3] Update ruby/irb/erb completions Shohei YOSHIDA
  2022-12-27  2:31 ` [PATCH 1/3] Update ruby completion for version 3.2.0 Shohei YOSHIDA
@ 2022-12-27  2:31 ` Shohei YOSHIDA
  2022-12-27  2:31 ` [PATCH 3/3] Update erb completion for version 4.0.2 Shohei YOSHIDA
  2 siblings, 0 replies; 4+ messages in thread
From: Shohei YOSHIDA @ 2022-12-27  2:31 UTC (permalink / raw)
  To: zsh-workers; +Cc: Shohei YOSHIDA

---
 Completion/Unix/Command/_ruby | 16 ++++++++++++++--
 1 file changed, 14 insertions(+), 2 deletions(-)

diff --git a/Completion/Unix/Command/_ruby b/Completion/Unix/Command/_ruby
index 9b182693f..3f2a71467 100644
--- a/Completion/Unix/Command/_ruby
+++ b/Completion/Unix/Command/_ruby
@@ -69,16 +69,28 @@ irb=(
   $opts[(r)*-d\[*]
   '(--noinspect)--inspect[use inspect for output]'
   "(--inspect)--noinspect[don't use inspect for output]"
-  '(--noreadline)--readline[use readline extension]'
-  "(--readline)--noreadline[don't use readline extension]"
   '(--prompt --prompt-mode --inf-ruby-mode --simple-prompt --noprompt)'{--prompt,--prompt-mode}'[switch prompt mode]:prompt mode:(default simple xmp inf-ruby)'
   '(--prompt --prompt-mode --inf-ruby-mode --simple-prompt --noprompt)'{--inf-ruby-mode,--simple-prompt,--noprompt}
   '--tracer[display trace for each command execution]'
   '--back-trace-limit[set limit for backtraces]:limit [16]:'
   '!--irb_debug:level'
   '--context-mode:n'
+  '--extra-doc-dir[Add an extra doc dir for the doc dialog]'
   '(--noecho)--echo[show result]'
   "(--echo)--noecho[don't show result]"
+  '(--noecho-on-assignment)--echo-on-assignment[show result on assignment]'
+  "(--echo-on-assignment)--noecho-on-assignment[don't show result on assignment]"
+  '--truncate-echo-on-assignment[show truncated result on assignment]'
+  '(--nomultiline)--multiline[use multiline editor module]'
+  "(--multiline)--nomultiline[don't use multiline editor module]"
+  '(--nosingleline)--singleline[use single line editor module]'
+  "(--singleline)--nosingleline[don't use single line editor module]"
+  '(--nocolorize)--colorize[use color-highlighting]'
+  "(--colorize)--nocolorize[don't use color-highlighting]"
+  '(--noautocomplete)--autocomplete[use auto-completion]'
+  "(--autocomplete)--noautocomplete[don't use auto-completion]"
+  '(--noscript)--script[script mode]'
+  '(--script)--noscript[no script mode]'
   '--single-irb[share self with sub-irb]'
   '(--noverbose)--verbose[show details]'
   "(--verbose)--noverbose[don't show details]"
-- 
2.37.2



^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH 3/3] Update erb completion for version 4.0.2
  2022-12-27  2:31 [PATCH 0/3] Update ruby/irb/erb completions Shohei YOSHIDA
  2022-12-27  2:31 ` [PATCH 1/3] Update ruby completion for version 3.2.0 Shohei YOSHIDA
  2022-12-27  2:31 ` [PATCH 2/3] Add irb completion for version 1.6.2 Shohei YOSHIDA
@ 2022-12-27  2:31 ` Shohei YOSHIDA
  2 siblings, 0 replies; 4+ messages in thread
From: Shohei YOSHIDA @ 2022-12-27  2:31 UTC (permalink / raw)
  To: zsh-workers; +Cc: Shohei YOSHIDA

---
 Completion/Unix/Command/_ruby | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/Completion/Unix/Command/_ruby b/Completion/Unix/Command/_ruby
index 3f2a71467..d5977156f 100644
--- a/Completion/Unix/Command/_ruby
+++ b/Completion/Unix/Command/_ruby
@@ -100,8 +100,9 @@ erb=(
   "-P[don't evaluate lines which start with %]"
   '-T[specify trim mode]:mode [0]:((0\:EOL\ remains 1\:EOL\ removed\ if\ line\ ends\ with\ %\> 2\:EOL\ removed\ if\ line\ starts\ with\ \<%\ and\ ends\ with\ %\> -\:EOL\ is\ removed\ if\ line\ ends\ with\ -%\>,\ leading\ whitespace\ removed\ after\ \<%-))'
   '(-d --debug)'{-d,--debug}'[set debugging flags (set $DEBUG to true)]'
-  '-n[used with -x, prepends line number to output]'
-  '-x[convert eRuby to Ruby]'
+  '-n[print ruby script with line number]'
+  '-x[print ruby script]'
+  '-v[enable verbose mode]'
 )
 
 case "$service" in
-- 
2.37.2



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-12-27  2:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-27  2:31 [PATCH 0/3] Update ruby/irb/erb completions Shohei YOSHIDA
2022-12-27  2:31 ` [PATCH 1/3] Update ruby completion for version 3.2.0 Shohei YOSHIDA
2022-12-27  2:31 ` [PATCH 2/3] Add irb completion for version 1.6.2 Shohei YOSHIDA
2022-12-27  2:31 ` [PATCH 3/3] Update erb completion for version 4.0.2 Shohei YOSHIDA

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).