Skip to content

Commit

Permalink
Merge pull request universal-ctags#4048 from masatake/cargo
Browse files Browse the repository at this point in the history
Cargo: new subparser based on TOML parser
  • Loading branch information
masatake authored Aug 18, 2024
2 parents f158eb8 + b4898dd commit e8578f4
Show file tree
Hide file tree
Showing 102 changed files with 4,517 additions and 137 deletions.
1 change: 1 addition & 0 deletions Tmain/list-subparsers-all.d/stdout-expected.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Autoconf M4 base <> sub {bidirectional}
Automake Make base <= sub {dedicated}
Bats Sh base <= sub {dedicated}
BibLaTeX BibTeX base <> sub {bidirectional}
Cargo TOML base <= sub {dedicated}
DBusIntrospect XML base <> sub {bidirectional}
FunctionParameters Perl base <> sub {bidirectional}
GemSpec Ruby base <= sub {dedicated}
Expand Down
4 changes: 4 additions & 0 deletions Units/parser-cargo.r/simple.d/args.ctags
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
--languages=-TOML
--map-Cargo=.cargo
--sort=no
--fields=+lK
1 change: 1 addition & 0 deletions Units/parser-cargo.r/simple.d/expected.tags
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
myapp input.cargo /^name = "myapp"$/;" package language:Cargo
1 change: 1 addition & 0 deletions Units/parser-cargo.r/simple.d/features
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
packcc
2 changes: 2 additions & 0 deletions Units/parser-cargo.r/simple.d/input.cargo
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[package]
name = "myapp"
1 change: 1 addition & 0 deletions docs/news/HEAD.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ New parsers
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

* TOML *peg/packcc*
* Cargo *TOML based subparser*

Changes about parser specific kinds, roles, fields, and extras
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Expand Down
1 change: 1 addition & 0 deletions main/parsers_p.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@
ClojureParser, \
CMakeParser, \
CParser, \
CargoParser, \
CppParser, \
CPreProParser, \
CssParser, \
Expand Down
Loading

0 comments on commit e8578f4

Please sign in to comment.