Commit c58e54f
Handle do as contract header and handle body as identifier (#360)
Handle `do` as contract header and handle `body` as identifier
merged-on-behalf-of: Brian Schott <Hackerpilot@users.noreply.github.com>
* libdparse 687c0ca(687c0ca)...086cf06(086cf06) (28 commits)
> Merge pull request #242 from BBasile/issue-241
> Merge pull request #239 from kubo39/add-isIntegerLiteral
> Merge pull request #237 from BBasile/parse-virt-helpers
> Merge pull request #236 from JinShil/patch-2
> Merge pull request #235 from BBasile/upd-stdx-alloc
(...)1 parent c2aea82 commit c58e54f
File tree
6 files changed
+72
-6
lines changed- src/dfmt
- tests
- allman
- otbs
6 files changed
+72
-6
lines changed- .gitmodules+3
- .travis.yml+5-2
- DGrammar/generate_html_from_libdparse.sh+1
- README.md+46
- appveyor.yml+12-12
- dub.json+3
- src/dparse/ast.d+34-29
- src/dparse/formatter.d+5-4
- src/dparse/lexer.d+57-9
- src/dparse/parser.d+176-137
- src/dparse/rollback_allocator.d+3-3
- src/dparse/stack_buffer.d+2-2
- stdx-allocator+1
- test/fail_files/issue0227.d+9
- test/fail_files/with_better_dcd.d+2
- test/fuzzer.d-1
- test/pass_files/body_as_ident.d+18
- test/pass_files/crazy1.d+3-3
- test/pass_files/declarations.d+5
- test/pass_files/single_line_with_decl.d+12
- test/run_tests.sh+6-3
- test/tester.d+17-3
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
283 | 283 | | |
284 | 284 | | |
285 | 285 | | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
286 | 290 | | |
287 | 291 | | |
288 | 292 | | |
| |||
591 | 595 | | |
592 | 596 | | |
593 | 597 | | |
594 | | - | |
| 598 | + | |
| 599 | + | |
595 | 600 | | |
| 601 | + | |
596 | 602 | | |
597 | 603 | | |
598 | 604 | | |
| |||
947 | 953 | | |
948 | 954 | | |
949 | 955 | | |
950 | | - | |
951 | | - | |
| 956 | + | |
| 957 | + | |
| 958 | + | |
952 | 959 | | |
| 960 | + | |
953 | 961 | | |
954 | 962 | | |
955 | 963 | | |
| |||
1038 | 1046 | | |
1039 | 1047 | | |
1040 | 1048 | | |
1041 | | - | |
| 1049 | + | |
| 1050 | + | |
| 1051 | + | |
| 1052 | + | |
| 1053 | + | |
| 1054 | + | |
1042 | 1055 | | |
1043 | 1056 | | |
1044 | 1057 | | |
| |||
1827 | 1840 | | |
1828 | 1841 | | |
1829 | 1842 | | |
| 1843 | + | |
| 1844 | + | |
| 1845 | + | |
| 1846 | + | |
| 1847 | + | |
| 1848 | + | |
| 1849 | + | |
| 1850 | + | |
| 1851 | + | |
| 1852 | + | |
| 1853 | + | |
| 1854 | + | |
1830 | 1855 | | |
1831 | 1856 | | |
1832 | 1857 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
217 | 217 | | |
218 | 218 | | |
219 | 219 | | |
220 | | - | |
| 220 | + | |
221 | 221 | | |
222 | 222 | | |
223 | 223 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
0 commit comments