Warning, /frameworks/syntax-highlighting/autotests/folding/build.ninja.fold is written in an unsupported language. File is not indexed.

0001 # comment
0002 rule b
0003 rule c
0004 #d
0005 rule c
0006 description=a
0007 rule d
0008   description = ds
0009   description = ds
0010   rule=ds
0011   description = ds
0012 rule b
0013 
0014 rule c
0015 
0016 rule c
0017  # ds
0018  ds=ds
0019 description=a
0020 rule d
0021   rule =description = ds
0022 
0023 rule b
0024   command = clang -MMD -MF $out.d -o $out -c $in
0025   description = building $out
0026   unknown = xyz
0027 
0028 rule dump
0029   command = sleep 1; ls -l /proc/self/fd; exit 1
0030   pool = link_pool
0031   # blah blah
0032   pool = console
0033   pool = $console
0034 
0035 rule xy-z_
0036 rule --xy-z_
0037 rule _xy-z_
0038 
0039 # error
0040 rule with error
0041 rule a:a
0042 rule a|a
0043 rule a$
0044 rule 0-@#d
0045 
0046 # browse_py.h is used to inline browse.py.
0047 rule inline
0048   command = "$root/src/inline.sh" $varname < $in > $out
0049   description = INLINE $out
0050 
0051 default foo bar
0052 default baz
0053 
0054 include ninja1.ninja
0055 
0056 subninja ninja2.ninja
0057 
0058 pool link_pool
0059   depth = 4
0060   xxx = d
0061 
0062 pool link_pool d
0063   depth = 4
0064 
0065 build a.o: b a.c
0066 
0067 build a.o|c: b a.c || a | b
0068 
0069 build a.o | c : b a.c | a || b
0070 
0071 build $a.o | $c : b $a.c | $a || $b
0072 
0073 build 0: sleep README
0074 
0075 build 1: sleep README
0076 
0077 build all: phony 0 1
0078 deps = xxx
0079 CMD = cc
0080 build all: phony 0 1
0081 
0082 build $builddir/browse_py.h: inline $root/src/browse.py | $root/src/inline.sh
0083   varname = kBrowsePy
0084 
0085 build $builddir/subprocess-posix.o: cxx $root/src/subprocess-posix.cc
0086 build $builddir/libninja.a: ar $builddir/browse.o $builddir/build.o $
0087     $builddir/build_log.o $builddir/clean.o $builddir/debug_flags.o $
0088     $builddir/depfile_parser.o $builddir/deps_log.o
0089 
0090 build $root/doc/manual.pdf: dblatex $builddir/manual.xml | $
0091     $root/doc/dblatex.xsl
0092 
0093 build out: cat in |@ validate1 validate2 |@ validate1 | dep
0094 build out: cat in || dep |@ validate
0095 
0096 builddir=/
0097 builddir =/
0098 builddir= /
0099 ldflags = -L$builddir
0100 
0101 xx x
0102 
0103 x = $a
0104 x = $-a_
0105 x = ${a}
0106 x = ${-a}
0107 x = $a@
0108 x = $@
0109 x = $$
0110 x = $:
0111 x = $ a
0112 x = $
0113     b
0114 x = $
0115     $
0116     a
0117 x = $
0118     $a
0119 x = $a a
0120 x = ${a} a
0121 x = $$ a
0122 x = $: a
0123 x = $! a
0124 x = ${a b ds
0125  x = a