Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
github
oh-my-zsh
Commits
4fe4db51
Commit
4fe4db51
authored
Jun 28, 2013
by
dongweiming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update coffee completion
parent
bc3cadf5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
3 deletions
+13
-3
_coffee
plugins/coffee/_coffee
+13
-3
No files found.
plugins/coffee/_coffee
View file @
4fe4db51
...
@@ -35,27 +35,37 @@
...
@@ -35,27 +35,37 @@
# -------
# -------
#
#
# * Mario Fernandez (https://github.com/sirech)
# * Mario Fernandez (https://github.com/sirech)
# * Dong Weiming (https://github.com/dongweiming)
#
#
# ------------------------------------------------------------------------------
# ------------------------------------------------------------------------------
local
curcontext
=
"
$curcontext
"
state line
ret
=
1
local
curcontext
=
"
$curcontext
"
state line
ret
=
1
version opts first second third
typeset
-A
opt_args
typeset
-A
opt_args
version
=(
${
(f)
"
$(
_call_program version
$words
[
1]
--version
)
"
}
)
version
=
${${
(z)
${
version
[1]
}}
[3]
}
first
=
$(
echo
$version
|cut
-d
'.'
-f
1
)
second
=
$(
echo
$version
|cut
-d
'.'
-f
2
)
third
=
$(
echo
$version
|cut
-d
'.'
-f
3
)
if
((
$first
< 2
))
&&
((
$second
< 7
))
&&
((
$third
< 3
))
;
then
opts+
=(
'(-l --lint)'
{
-l
,--lint
}
'[pipe the compiled JavaScript through JavaScript Lint]'
'(-r --require)'
{
-r
,--require
}
'[require a library before executing your script]:library'
)
fi
_arguments
-C
\
_arguments
-C
\
'(- *)'
{
-h
,--help
}
'[display this help message]'
\
'(- *)'
{
-h
,--help
}
'[display this help message]'
\
'(- *)'
{
-v
,--version
}
'[display the version number]'
\
'(- *)'
{
-v
,--version
}
'[display the version number]'
\
$opts
\
'(-b --bare)'
{
-b
,--bare
}
'[compile without a top-level function wrapper]'
\
'(-b --bare)'
{
-b
,--bare
}
'[compile without a top-level function wrapper]'
\
'(-e --eval)'
{
-e
,--eval
}
'[pass a string from the command line as input]:Inline Script'
\
'(-e --eval)'
{
-e
,--eval
}
'[pass a string from the command line as input]:Inline Script'
\
'(-i --interactive)'
{
-i
,--interactive
}
'[run an interactive CoffeeScript REPL]'
\
'(-i --interactive)'
{
-i
,--interactive
}
'[run an interactive CoffeeScript REPL]'
\
'(-j --join)'
{
-j
,--join
}
'[concatenate the source CoffeeScript before compiling]:Destination JS file:_files -g "*.js"'
\
'(-j --join)'
{
-j
,--join
}
'[concatenate the source CoffeeScript before compiling]:Destination JS file:_files -g "*.js"'
\
'(-l --lint)'
{
-l
,--lint
}
'[pipe the compiled JavaScript through JavaScript Lint]'
\
'(--nodejs)--nodejs[pass options directly to the "node" binary]'
\
'(--nodejs)--nodejs[pass options directly to the "node" binary]'
\
'(-c --compile)'
{
-c
,--compile
}
'[compile to JavaScript and save as .js files]'
\
'(-c --compile)'
{
-c
,--compile
}
'[compile to JavaScript and save as .js files]'
\
'(-o --output)'
{
-o
,--output
}
'[set the output directory for compiled JavaScript]:Output Directory:_files -/'
\
'(-o --output)'
{
-o
,--output
}
'[set the output directory for compiled JavaScript]:Output Directory:_files -/'
\
'(-n -t -p)'
{
-n
,--nodes
}
'[print out the parse tree that the parser produces]'
\
'(-n -t -p)'
{
-n
,--nodes
}
'[print out the parse tree that the parser produces]'
\
'(-n -t -p)'
{
-p
,--print
}
'[print out the compiled JavaScript]'
\
'(-n -t -p)'
{
-p
,--print
}
'[print out the compiled JavaScript]'
\
'(-n -t -p)'
{
-t
,--tokens
}
'[print out the tokens that the lexer/rewriter produce]'
\
'(-n -t -p)'
{
-t
,--tokens
}
'[print out the tokens that the lexer/rewriter produce]'
\
'(-r --require)'
{
-r
,--require
}
'[require a library before executing your script]:library'
\
'(-s --stdio)'
{
-s
,--stdio
}
'[listen for and compile scripts over stdio]'
\
'(-s --stdio)'
{
-s
,--stdio
}
'[listen for and compile scripts over stdio]'
\
'(-w --watch)'
{
-w
,--watch
}
'[watch scripts for changes and rerun commands]'
\
'(-w --watch)'
{
-w
,--watch
}
'[watch scripts for changes and rerun commands]'
\
'*:script or directory:_files'
&&
ret
=
0
'*:script or directory:_files'
&&
ret
=
0
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment