From 5c511dd1244fc8eeccf8920a5a4754ae01da296e Mon Sep 17 00:00:00 2001 From: Amaan Qureshi Date: Fri, 24 Feb 2023 07:42:04 -0500 Subject: feat(solidity): use maintained parser and update highlights accordingly --- tests/query/highlights/solidity/test.sol | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests/query') diff --git a/tests/query/highlights/solidity/test.sol b/tests/query/highlights/solidity/test.sol index a4b642ee6..062970fdd 100644 --- a/tests/query/highlights/solidity/test.sol +++ b/tests/query/highlights/solidity/test.sol @@ -4,13 +4,13 @@ // ^ comment pragma solidity >=0.7.0 <0.9.0; // ^ preproc -// ^ attribute +// ^ preproc import * as something from "anotherFile"; // ^ ^ ^ include /// @title Voting with delegation. -// ^ preproc +// <- comment contract Ballot { // ^keyword // ^ type @@ -20,7 +20,7 @@ contract Ballot { struct Voter { // ^ type uint weight; // weight is accumulated by delegation -// ^ type +// ^ type.builtin // ^ field bool voted; // if true, that person already voted address delegate; // person delegated to @@ -34,7 +34,7 @@ contract Ballot { } address public chairperson; -// ^ type +// ^ type.builtin // This declares a state variable that // stores a `Voter` struct for each possible address. -- cgit v1.2.3-70-g09d2