-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
55 changed files
with
1,544 additions
and
793 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,3 +32,6 @@ TAGS | |
# Ninja output | ||
.ninja_deps | ||
.ninja_log | ||
|
||
# Visual Studio Code project files | ||
/.vscode/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,15 @@ | ||
matrix: | ||
include: | ||
- os: linux | ||
compiler: gcc | ||
- os: linux | ||
compiler: clang | ||
- os: osx | ||
sudo: false | ||
language: cpp | ||
compiler: | ||
- gcc | ||
- clang | ||
script: ./configure.py --bootstrap && ./ninja all && ./ninja_test --gtest_filter=-SubprocessTest.SetWithLots && ./misc/ninja_syntax_test.py | ||
script: | ||
- ./configure.py --bootstrap | ||
- ./ninja all | ||
- ./ninja_test --gtest_filter=-SubprocessTest.SetWithLots | ||
- ./misc/ninja_syntax_test.py | ||
- ./misc/output_test.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
version: 1.0.{build} | ||
image: Visual Studio 2017 | ||
|
||
environment: | ||
CLICOLOR_FORCE: 1 | ||
CHERE_INVOKING: 1 # Tell Bash to inherit the current working directory | ||
matrix: | ||
- MSYSTEM: MINGW64 | ||
- MSYSTEM: MSVC | ||
|
||
for: | ||
- | ||
matrix: | ||
only: | ||
- MSYSTEM: MINGW64 | ||
build_script: | ||
ps: "C:\\msys64\\usr\\bin\\bash -lc @\"\n | ||
pacman -S --quiet --noconfirm --needed re2c 2>&1\n | ||
sed -i 's|cmd /c $ar cqs $out.tmp $in && move /Y $out.tmp $out|$ar crs $out $in|g' configure.py\n | ||
./configure.py --bootstrap --platform mingw 2>&1\n | ||
./ninja all\n | ||
./ninja_test 2>&1\n | ||
./misc/ninja_syntax_test.py 2>&1\n\"@" | ||
- | ||
matrix: | ||
only: | ||
- MSYSTEM: MSVC | ||
build_script: | ||
- cmd: >- | ||
call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat" | ||
python configure.py --bootstrap | ||
ninja.bootstrap.exe all | ||
ninja_test | ||
python misc/ninja_syntax_test.py | ||
test: off |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
" ninja build file syntax. | ||
" Language: ninja build file as described at | ||
" http://ninja-build.org/manual.html | ||
" Version: 1.4 | ||
" Last Change: 2014/05/13 | ||
" Version: 1.5 | ||
" Last Change: 2018/04/05 | ||
" Maintainer: Nicolas Weber <[email protected]> | ||
" Version 1.4 of this script is in the upstream vim repository and will be | ||
" included in the next vim release. If you change this, please send your change | ||
|
@@ -21,7 +21,10 @@ set cpo&vim | |
|
||
syn case match | ||
|
||
syn match ninjaComment /#.*/ contains=@Spell | ||
" Comments are only matched when the # is at the beginning of the line (with | ||
" optional whitespace), as long as the prior line didn't end with a $ | ||
" continuation. | ||
syn match ninjaComment /\(\$\n\)\@<!\_^\s*#.*$/ contains=@Spell | ||
|
||
" Toplevel statements are the ones listed here and | ||
" toplevel variable assignments (ident '=' value). | ||
|
@@ -38,12 +41,13 @@ syn match ninjaKeyword "^subninja\>" | |
" limited set of magic variables, 'build' allows general | ||
" let assignments. | ||
" manifest_parser.cc, ParseRule() | ||
syn region ninjaRule start="^rule" end="^\ze\S" contains=ALL transparent | ||
syn keyword ninjaRuleCommand contained command deps depfile description generator | ||
syn region ninjaRule start="^rule" end="^\ze\S" contains=TOP transparent | ||
syn keyword ninjaRuleCommand contained containedin=ninjaRule command | ||
\ deps depfile description generator | ||
\ pool restat rspfile rspfile_content | ||
|
||
syn region ninjaPool start="^pool" end="^\ze\S" contains=ALL transparent | ||
syn keyword ninjaPoolCommand contained depth | ||
syn region ninjaPool start="^pool" end="^\ze\S" contains=TOP transparent | ||
syn keyword ninjaPoolCommand contained containedin=ninjaPool depth | ||
|
||
" Strings are parsed as follows: | ||
" lexer.in.cc, ReadEvalString() | ||
|
Oops, something went wrong.