From c55131d07c42bcb535a0878edfc62ff38e4424fd Mon Sep 17 00:00:00 2001 From: Basile Burg Date: Thu, 14 Jun 2018 15:16:05 +0200 Subject: [PATCH] fix #495 - Completion no working on variable named `body` --- dsymbol | 2 +- dub.json | 4 ++-- libdparse | 2 +- tests/tc_body_var/expected.txt | 8 ++++++++ tests/tc_body_var/file.d | 1 + tests/tc_body_var/run.sh | 5 +++++ 6 files changed, 18 insertions(+), 4 deletions(-) create mode 100644 tests/tc_body_var/expected.txt create mode 100644 tests/tc_body_var/file.d create mode 100755 tests/tc_body_var/run.sh diff --git a/dsymbol b/dsymbol index 77c4a11..3f7eaa1 160000 --- a/dsymbol +++ b/dsymbol @@ -1 +1 @@ -Subproject commit 77c4a1140a38828cc10da718519815635873bfae +Subproject commit 3f7eaa1b1e6dd0c5e14d500d0b3d4ba1e1e41138 diff --git a/dub.json b/dub.json index 17dbc47..7bce7f8 100644 --- a/dub.json +++ b/dub.json @@ -7,8 +7,8 @@ ], "license": "GPL-3.0", "dependencies": { - "dsymbol": "~>0.3.9", - "libdparse": "~>0.8.6", + "dsymbol": "~>0.3.10", + "libdparse": "~>0.8.7", "msgpack-d": "~>1.0.0-beta.3", "stdx-allocator": "~>2.77.2" }, diff --git a/libdparse b/libdparse index cf102ff..086cf06 160000 --- a/libdparse +++ b/libdparse @@ -1 +1 @@ -Subproject commit cf102ff8e848fb18d2ce7056ae61dafb5333012d +Subproject commit 086cf06051bb1f33c94891ba6c39a57f164ee296 diff --git a/tests/tc_body_var/expected.txt b/tests/tc_body_var/expected.txt new file mode 100644 index 0000000..9a132a4 --- /dev/null +++ b/tests/tc_body_var/expected.txt @@ -0,0 +1,8 @@ +identifiers +alignof k +init k +mangleof k +max k +min k +sizeof k +stringof k diff --git a/tests/tc_body_var/file.d b/tests/tc_body_var/file.d new file mode 100644 index 0000000..72bec56 --- /dev/null +++ b/tests/tc_body_var/file.d @@ -0,0 +1 @@ +char body; body. diff --git a/tests/tc_body_var/run.sh b/tests/tc_body_var/run.sh new file mode 100755 index 0000000..6e2b067 --- /dev/null +++ b/tests/tc_body_var/run.sh @@ -0,0 +1,5 @@ +set -e +set -u + +../../bin/dcd-client $1 file.d -c16 > actual.txt +diff actual.txt expected.txt