mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
feat(solidity): use maintained parser and update highlights accordingly
This commit is contained in:
parent
b401b7423d
commit
5c511dd124
5 changed files with 138 additions and 98 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue