diff options
| author | Amaan Qureshi <amaanq12@gmail.com> | 2023-02-24 07:42:04 -0500 |
|---|---|---|
| committer | Stephan Seitz <stephan.seitz@fau.de> | 2023-02-24 13:05:33 -0800 |
| commit | 5c511dd1244fc8eeccf8920a5a4754ae01da296e (patch) | |
| tree | 44a7929f9b7c006726dd79bdbdaa50887293c05c /tests/query | |
| parent | ci: bump release workflow (diff) | |
| download | nvim-treesitter-5c511dd1244fc8eeccf8920a5a4754ae01da296e.tar nvim-treesitter-5c511dd1244fc8eeccf8920a5a4754ae01da296e.tar.gz nvim-treesitter-5c511dd1244fc8eeccf8920a5a4754ae01da296e.tar.bz2 nvim-treesitter-5c511dd1244fc8eeccf8920a5a4754ae01da296e.tar.lz nvim-treesitter-5c511dd1244fc8eeccf8920a5a4754ae01da296e.tar.xz nvim-treesitter-5c511dd1244fc8eeccf8920a5a4754ae01da296e.tar.zst nvim-treesitter-5c511dd1244fc8eeccf8920a5a4754ae01da296e.zip | |
feat(solidity): use maintained parser and update highlights accordingly
Diffstat (limited to 'tests/query')
| -rw-r--r-- | tests/query/highlights/solidity/test.sol | 8 |
1 files changed, 4 insertions, 4 deletions
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. |
