summaryrefslogtreecommitdiffstats
path: root/misc
Commit message (Collapse)AuthorAgeFilesLines
* update ninja.vim version after bff884d55Nico Weber2018-04-051-2/+2
|
* Merge pull request #1356 from RedBeard0531/vim_syntaxNico Weber2018-04-051-5/+9
|\ | | | | Improve vim syntax definition
| * Improve vim syntax definitionMathias Stearn2017-11-091-5/+9
| | | | | | | | | | Only highlights comments where the ninja lexer would treat them as such. Also correctly scopes the rule- and pool-specific variables highlighting.
* | Support pool for Writer.build() in ninja_syntax.pyKareem Khazem2018-02-201-1/+3
|/ | | | | ninja_syntax.py now supports a pool being specified for individual builds, as well as rules.
* Make zsh completion use explicitly specified ninja filesMathias Stearn2017-05-181-1/+6
|
* Fix syntax error in misc/write_fake_manifests.pyJames Robinson2016-10-251-2/+2
| | | | This is used by manifest_parser_perftest
* enhance write_fake_manifest.pyFrank Benkstein2016-06-231-18/+71
| | | | | | | | | | | | | | | Add an option to write_fake_manifest.py to generate sources expected by the manifest. Also slightly adapt command lines to the called commands. Together these changes mean that generated manifest can actually be executed successfully on Linux and OSX. Also add command line options to to change the number of targets being generated and the seed for the random number generator. Example usage: # create build directory in fake/build, sources in fake/src $ python misc/write_fake_manifest.py -s ../src fake/build # execute build in fake/build $ ninja -C fake/build
* Make misc/measure.py compatible with python3KiYugadgeter2016-05-041-5/+7
|
* Add support for implicit outputs in ninja_syntax.py.Nicolas Despres2016-02-062-1/+13
|
* Teach zsh to complete intermediary targets.Nicolas Despres2015-12-241-3/+2
| | | | | | | | Bash completion script uses "-t targets all" to list the target which is faster than "-t targets" and reports intermediary targets (see the manual entry for the 'targets' tool). See commit fc135c45.
* Merge pull request #1042 from avallee/masterEvan Martin2015-12-062-2/+9
|\ | | | | Fix wrapping file paths in Writer.comment
| * Disable long word wrapping entirely in comments.Alex Vallée2015-11-272-10/+3
| | | | | | | | | | | | As pointed out by nico, we should unconditionally disable breaking of long words in comments. It is unlikely long words that are in comments should be split (like pathnames).
| * Fix indent in pull request #1042.Alex Vallee2015-11-121-1/+1
| |
| * Fix wrapping file paths in Writer.commentAlex Vallée2015-10-232-2/+16
| | | | | | | | | | | | | | | | Long file names, especially with hyphens will get incorrectly wrapped by the comment method. Pass has_path=True to prevent this type of wrapping. This is mainly so that longer path names can show up in comments on their on line without breaking them up.
* | Merge pull request #1047 from pykello/masterNico Weber2015-11-121-3/+2
|\ \ | | | | | | Speed-up bash target auto-complete.
| * | Speed-up bash target auto-complete.Hadi Moshayedi2015-10-311-3/+2
| |/ | | | | | | | | | | | | | | These speed-ups include: * Let compgen do the command substitution. Similar to https://lists.gnu.org/archive/html/bug-bash/2012-03/msg00115.html * Use "cut" instead of "awk" for separating fields.
* | Merge pull request #1046 from zed0/masterNico Weber2015-11-121-2/+1
|\ \ | | | | | | Speed up zsh target completion
| * | Speed up zsh target completionBen Falconer2015-10-301-2/+1
| |/
* | Update link to point to ninja-build.orgNico Weber2015-11-111-1/+1
| |
* | Make links point to org pageNico Weber2015-11-112-4/+4
|/
* Add notes on using afl-fuzz to HACKING.Nico Weber2015-03-1917-0/+21
|
* zsh-completion: remove use of 'head' with negative offsetFraser Cormack2014-12-201-1/+1
| | | | | | | | | | Some systems - like OSX - don't come with a version of head that supports a negative value for the -n flag. Such systems get a message such as this when tab-completing ninja's -d flag: ninja -dhead: illegal line count -- -1 Using sed instead should be more universally supported.
* Remove unneeded save-excursion.Fanael Linithien2014-11-241-22/+21
| | | | syntax-propertize-function is allowed to move the point and mark.
* Use lexical-binding.Fanael Linithien2014-11-231-1/+1
| | | | | There's no reason not to use lexical-binding when supporting only Emacs 24+. Its semantics are just that much saner.
* Add a Emacs 24 requirement.Fanael Linithien2014-11-231-0/+2
| | | | Only Emacs >= 24 has prog-mode.
* Correctly recognize a comment if the previous line is a comment ending in $.Fanael Linithien2014-11-231-2/+9
|
* Avoid putting properties past the end of the buffer.Fanael Linithien2014-11-231-1/+4
|
* Don't use dotted list syntax unless necessary.Fanael Linithien2014-11-231-4/+4
|
* Remove unnecessary regexp group.Fanael Linithien2014-11-231-2/+2
|
* Correctly recognize comments.Fanael Linithien2014-11-231-0/+17
|
* Set up a proper syntax table for ninja-mode.Fanael Linithien2014-11-231-5/+8
| | | | | | | | Since quotes are not meant to be treated as string delimiters, the syntax table is the place to tell Emacs so. This also means syntactic fontification can be reenabled and the font-lock keyword entry for comments removed.
* Set comment-start buffer-locally, not globally.Fanael Linithien2014-11-231-1/+1
|
* Use quasi-quoting instead of list+cons.Fanael Linithien2014-11-231-15/+14
|
* Reindent ninja-mode.el using Emacs.Fanael Linithien2014-11-231-16/+16
| | | | Emacs knows best how to indent Emacs Lisp.
* Use double semicolon comments.Fanael Linithien2014-11-231-2/+2
|
* Don't leave lone closing parens.Fanael Linithien2014-11-231-4/+2
|
* no subshellElan Ruusamäe2014-11-231-1/+1
| | | don't need subshell to send stderr to /dev/null
* Merge pull request #772 from drbo/syntax_bugfixEvan Martin2014-11-231-0/+1
|\ | | | | Added highlighting in Emacs for ${...} variables
| * Removed tab and added . in variable name regexpDemetri Obenour2014-06-011-1/+1
| |
| * Added highlighting in Emacs for ${...} variablesDemetri Obenour2014-06-011-0/+1
| |
* | drop leftover references to bootstrap.pyEvan Martin2014-11-181-1/+1
| |
* | Merge pull request #813 from cdlm/emacs-mode-require-newlineEvan Martin2014-11-181-2/+2
|\ \ | | | | | | Emacs mode: inherit from prog-mode
| * | Emacs mode: inherit from prog-modeDamien Pollet2014-09-161-2/+2
| | | | | | | | | | | | | | | | | | | | | `prog-mode` ensures a final newline when saving files, which is useful since ninja fails otherwise. See `require-final-newline` and `mode-require-final-newline`.
* | | add a --bootstrap mode for configure.pyEvan Martin2014-11-181-11/+15
| | | | | | | | | | | | | | | | | | Instead of bootstrapping through a separate script, instead make configure.py able to either generate a build.ninja *or* just execute all the computed commands to build a ninja binary.
* | | add an "expand" function to ninja_syntaxEvan Martin2014-11-182-0/+41
| | | | | | | | | | | | Implements basic variable expansion for use in configure.py.
* | | emacs: Remove an empty line, wrap a comment.Nico Weber2014-11-171-2/+2
| | |
* | | CanonicalizePath handles \ on WindowsScott Graham2014-10-301-1/+1
| | |
* | | Add zsh completion for targets in conjunction with -CFraser Cormack2014-10-241-1/+8
|/ / | | | | | | | | zsh can now list completions for targets in the directory specified by the -C option
* | Add highlighting of rule in build statementsdonkopotamus2014-06-271-1/+5
| | | | | | Highlight the rule being used in a build statement. Also add `.` to acceptable characters in a rule name and relax whitespace matching before the name.
* | Update ninja-mode for emacs to handle hyphens in rule namesdonkopotamus2014-06-261-1/+1
| |