From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-io1-xd2a.google.com (mail-io1-xd2a.google.com [IPv6:2607:f8b0:4864:20::d2a]) by sourceware.org (Postfix) with ESMTPS id 78C143858439 for ; Mon, 7 Mar 2022 16:04:56 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 78C143858439 Received: by mail-io1-xd2a.google.com with SMTP id c23so17609872ioi.4 for ; Mon, 07 Mar 2022 08:04:56 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=GmOIOhPGZVIfXgEEhbWGDDwaoUidE81pbCiEOd6M29A=; b=6p5GptwXMmfusmV+3VWpiWrelv7e2bd1BTYZd+TL8mdWmYOSZ1r9B0W4SLer0gfo1i ioKx7ybHHcrdagdpZsRvhYW55/niEgUGJSQ7/fjyvvLwFYRwU/AucySQU0HcH7BWDLVv /9h8fWIM8B/zg38KAW3YJ5R1lv5myUGD2QxJWA2hmMreBO1zduENKdaO6JSYTc3D1uPz EewKAum7Z+RlrXX6VLE9R9JxsSZsreLKQ+6NIWX1XijrEON4HIa56w2cTqCX/OxWbUSF pGXqub9xpppJ9r7FXt60z1m8T0GRfF/HE3G6fan34IR3Ti82nJA0xrBHg2xftzligS3D yBJA== X-Gm-Message-State: AOAM5322YvzAk3qzk3dySebFtv6dQfNoq2gEmeZRr2f42L7NQCrq4Q3P NBHQ0UxYA93cBvR2wwpWY9RIdnxjGOJ66A== X-Google-Smtp-Source: ABdhPJwvwn4lGTZw2VJh7pVtAA+T0ZIIPNF9nq93Otg+fHW8dA3dgV9Eq7Dzx/W3TZC/OBUxt0WFfQ== X-Received: by 2002:a05:6638:2105:b0:317:b6fb:2e2c with SMTP id n5-20020a056638210500b00317b6fb2e2cmr6647926jaj.176.1646669095893; Mon, 07 Mar 2022 08:04:55 -0800 (PST) Received: from murgatroyd.Home (75-166-141-253.hlrn.qwest.net. [75.166.141.253]) by smtp.gmail.com with ESMTPSA id q5-20020a056e0220e500b002c5ba03f8eesm11346873ilv.9.2022.03.07.08.04.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Mar 2022 08:04:55 -0800 (PST) From: Tom Tromey To: gdb-patches@sourceware.org Subject: [PATCH 0/9] Context-sensitive completion for Ada Date: Mon, 7 Mar 2022 09:04:43 -0700 Message-Id: <20220307160452.3765943-1-tromey@adacore.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-5.4 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Mar 2022 16:04:57 -0000 This updates the Ada parser to allow context-sensitive completion, as is already done for C, C++, and Rust. In addition to the usual field name completion, Ada now also allows completion of Ada attributes. A hack was needed in the last patch in order to work around problems with the word breaking algorithm. I didn't see a way to handle this without a larger rewrite of the Ada parser. I think the only non-Ada-specific changes are the expression completion refactoring in patch #4, and then a minor addition to this code in patch #9. Regression tested on x86-64 Fedora 34. Tom