mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-13 00:40:06 -04:00
Refactor solidity highlights.scm
- Use more specific/appropriate captures; change invalid captures - Don't highlight punctuations in type names (e.g., the brackets in 'bytes32[]')
This commit is contained in:
parent
a180859eea
commit
8f3991065d
2 changed files with 31 additions and 14 deletions
|
|
@ -5,6 +5,10 @@
|
|||
pragma solidity >=0.7.0 <0.9.0;
|
||||
// ^ keyword
|
||||
// ^ tag
|
||||
|
||||
import * as something from "anotherFile";
|
||||
// ^ ^ ^ include
|
||||
|
||||
/// @title Voting with delegation.
|
||||
// ^ attribute
|
||||
contract Ballot {
|
||||
|
|
@ -170,4 +174,9 @@ contract Ballot {
|
|||
}
|
||||
}
|
||||
|
||||
contract Another {
|
||||
Ballot b = new Ballot(new bytes32[](1));
|
||||
// ^ keyword.operator
|
||||
}
|
||||
|
||||
// vim:ft=solidity
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue