Skip to content

Commit e8578f4

Browse files
authored
Merge pull request #4048 from masatake/cargo
Cargo: new subparser based on TOML parser
2 parents f158eb8 + b4898dd commit e8578f4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

102 files changed

+4517
-137
lines changed

Tmain/list-subparsers-all.d/stdout-expected.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ Autoconf M4 base <> sub {bidirectional}
55
Automake Make base <= sub {dedicated}
66
Bats Sh base <= sub {dedicated}
77
BibLaTeX BibTeX base <> sub {bidirectional}
8+
Cargo TOML base <= sub {dedicated}
89
DBusIntrospect XML base <> sub {bidirectional}
910
FunctionParameters Perl base <> sub {bidirectional}
1011
GemSpec Ruby base <= sub {dedicated}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
--languages=-TOML
2+
--map-Cargo=.cargo
3+
--sort=no
4+
--fields=+lK
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
myapp input.cargo /^name = "myapp"$/;" package language:Cargo
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
packcc
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[package]
2+
name = "myapp"

docs/news/HEAD.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ New parsers
1818
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1919

2020
* TOML *peg/packcc*
21+
* Cargo *TOML based subparser*
2122

2223
Changes about parser specific kinds, roles, fields, and extras
2324
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

main/parsers_p.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@
7777
ClojureParser, \
7878
CMakeParser, \
7979
CParser, \
80+
CargoParser, \
8081
CppParser, \
8182
CPreProParser, \
8283
CssParser, \

0 commit comments

Comments
 (0)