Commit Graph

88 Commits

Author SHA1 Message Date
Nico Weber
4213308cb9 vim syntax: Correctly highlight $$a as ($$)a instead of $($a). 2014-05-13 23:51:51 +02:00
Taylor Braun-Jones
b1d4668260 Fix getopts barfing over the terminal when trying to complete -f and -C
Note that this is only applicable for when bash_completion is
unavailable.
2014-04-30 14:39:04 -04:00
Taylor Braun-Jones
4f9ac2aab9 Support completion of arguments to -f and -C options
Note: This is only available for bash_completion users.
2014-04-30 14:37:47 -04:00
Taylor Braun-Jones
43645ff15b Style: Fix inconsistent indentation 2014-04-25 13:59:53 -04:00
Taylor Braun-Jones
28d64afc72 Fix bash-completion support for -C option to expand tilde 2014-04-25 13:50:09 -04:00
Allan Odgaard
4835a2b195 Expand the -C argument via ‘eval’ in bash completion
Previously completion would not work for ‘ninja -C $HOME/Source/foo targ‸’.

We still do not support using tilde in the directory argument.
2014-04-15 14:28:42 +07:00
Allan Odgaard
1f38478eb9 Fix bash completion when using command options
By quoting the ‘line’ variable we are making it a single word, but ‘getopts’ wants each option as its own word.

Previously bash completion would output an error for a line like: ‘ninja -vn targ‸’.

In addition to removing the quotes (to enable word expansion) I also used it as a regular variable, as that is what it is (not an array).
2014-04-15 14:27:57 +07:00
Nico Weber
36ffb5922c Merge pull request #722 from nico/manifestgen
add a script to generate large synthetic manifests
2014-04-14 10:43:15 -07:00
Daniel Bratell
cc533ecb29 performance: Writer.build should copy less.
The build method copies the input lists several times. That
cost about 0.1s in the gyp generation for the Chromium project for
no gain.
2014-04-14 13:52:02 +02:00
Nico Weber
9ea8bdd8d4 add a script to generate large synthetic manifests
To be used by a manifest parser perf test in a follow-up.
2014-03-25 08:38:58 -07:00
Steve Purcell
2b9fefbdd4 ninja-mode: add autoload cookie for the mode itself 2014-01-22 12:01:16 +00:00
Evan Martin
8d42584c29 Merge branch 'fix-provide-form' of git://github.com/yasuyk/ninja
Conflicts:
	misc/ninja-mode.el
2014-01-21 10:57:29 -08:00
Evan Martin
51c9220f53 Merge branch 'fix-warning' of git://github.com/yasuyk/ninja
Conflicts:
	misc/ninja-mode.el
2014-01-21 10:56:43 -08:00
Yasuyuki Oka
9da5b0c862 emacs: Place provide form at end of file
Any errors in the code after "provide" will leave the feature
registered, so it should always be at the end.
2014-01-21 22:33:35 +09:00
Yasuyuki Oka
8596ba6081 emacs: Fix a warning
Fix a following byte-compile warning:
ninja-mode.el:18:7:Warning: assignment to free variable `ninja-keywords'
2014-01-21 22:29:41 +09:00
Yasuyuki Oka
e4dc39bdbf emacs: ELPA compatibility 2014-01-21 22:19:19 +09:00
Nico Weber
1b9c7bb51a Note that version 1.3 of the vim syntax file has been sent upstream.
Also fix an issue noticed by Bram during integration: Make sure to set "cpo"
correctly. This matches other vim syntax files and is required to make sure
that the backslash continuation works with all .vimrc files
(see `:help line-continuation`).
2013-04-16 12:18:39 -07:00
Evan Martin
b8e7500180 make unittest match module name 2013-04-10 09:43:25 -07:00
yannicklm
7dba46cbe7 ninja.vim: add deps as keyword
new in ninja 1.3
2013-04-09 21:04:21 +02:00
Evan Martin
a8d7d8163a rename "special" to "deps" 2013-04-08 15:02:15 -07:00
Evan Martin
85a4db7822 add "special=gcc" attribute, use to load depslog 2013-04-08 14:45:07 -07:00
Guilherme Bufolo
ca04327e24 Improved bash completion when using tools like '-t clean' 2013-04-06 13:47:18 +02:00
Petr Hosek
e9f4fe4c4c Removed re2c build dependency from RPM spec file 2013-01-21 19:32:44 +00:00
Petr Hosek
a592a50679 Use correct Fedora versioning scheme 2013-01-15 23:27:54 +00:00
Petr Hosek
3c0b8b2874 RPM spec file should use correct versioning scheme and list all build dependencies 2013-01-14 12:49:05 +00:00
Evan Martin
b883c291c1 ninja_syntax.py: don't add trailing space when build has no inputs
Seen in Ninja's configure.py where it creates an "rpmbuild" command.
2012-12-29 00:39:38 -08:00
Nico Weber
1b91f76bba Update version number in ninja.vim after recent changes. 2012-12-14 21:18:31 -08:00
Evan Martin
deb12d8eed Merge pull request #471 from riannucci/fix_vim_syntax
Fix vim syntax
2012-12-14 11:06:03 -08:00
Evan Martin
62620a074a Merge pull request #472 from riannucci/add_python_pool_syntax
Add python ninja_syntax.py support for pool
2012-12-14 11:05:44 -08:00
Robert Iannucci
53ba2ca746 Add missing default keyword 2012-12-13 23:21:02 -08:00
Robert Iannucci
16a7f86f0f Add pool 2012-12-13 23:20:50 -08:00
Robert Iannucci
a7e4d6affb Add missing rspfile and rspfile_content 2012-12-13 23:12:47 -08:00
Robert Iannucci
e735510fcf Add ninja.vim syntax for pool 2012-12-13 23:12:47 -08:00
Robert Iannucci
f5129c8174 Add python ninja_syntax.py support for pool 2012-12-13 23:11:48 -08:00
Tommy Nyquist
e6c67528e8 Add support for reading directory for bash completion.
Currently ninja bash completion only works in the directory where the
build.ninja files is located. This adds support for using the -C
argument to ninja.
2012-10-30 15:28:02 -07:00
Zaheer Chothia
1d5daecfaf Add support for Python 3 2012-10-18 15:03:20 +02:00
Maxim Kalaev
1cdfae5a88 packaging: refactored rpm building
Now passing through a valid SRPM, working in a standard way.
2012-09-23 14:37:11 +02:00
Maxim Kalaev
0cd552c0dc packaging: added basic RPM building 2012-07-27 13:22:34 +03:00
Evan Martin
1e2514e521 ninja_syntax: escape colons in paths 2012-07-17 13:26:21 -07:00
Thiago Farina
3baedf1767 Rename parsers.* to manifest_parser.*
So it matches with the class name in there.

Signed-off-by: Thiago Farina <tfarina@chromium.org>
2012-07-09 16:09:31 -03:00
Nico Weber
d8d301b2ec Make :set spell only check spelling in comments. Patch from Thilo Six <T.Six@gmx.de>! 2012-06-01 10:59:15 -07:00
Nico Weber
8aebe7d32e vim syntax file: Highlight ninja comments. 2012-05-13 21:34:58 -07:00
Nico Weber
7ef52b4c6f Fix layout width in ninja_syntax.py.
The last line would sometimes be needlessly longer than the layout
width. One example is line 67 in the build.ninja generated by
ninja's own configure.py: Before this patch, ninja_syntax would
create a 81 character line.
2012-05-01 18:26:51 -07:00
Evan Martin
8066c2d1bb emacs: hook up ninja-mode to extension 2012-04-28 09:06:55 -07:00
Scott Graham
35544126cf add rspfile and rspfile_content to ninja_syntax 2012-03-26 17:36:43 -07:00
Scott Franklin
e257aa3fbd Explicitly turn input/output lists into list objects.
Python 3 does not support map.append/extend.
2012-01-28 15:16:47 -05:00
Evan Martin
f41757f885 Merge pull request #185 from nico/vim
Add a ninja syntax file for vim.
2012-01-04 16:46:42 -08:00
Evan Jones
16e4419e88 ninja_syntax.py: Fix a bug when passing dict variables to Writer.build()
Add a test to cover both dict and list variables.
2012-01-04 17:36:08 -05:00
Nico Weber
98956ab4e8 Add a ninja syntax file for vim. 2012-01-04 13:52:11 -08:00
Evan Martin
eaf1ff1904 add script for measuring build performance 2011-12-29 11:57:02 -08:00