Skip to content

Commit

Permalink
chore: adjust Neovim queries
Browse files Browse the repository at this point in the history
  • Loading branch information
novusnota committed Sep 29, 2024
1 parent 09c57b6 commit 2fcb6f1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions editor_queries/neovim/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,10 @@
(tlb_serialization
"as" @keyword
type: (identifier) @type.builtin
(#match? @type.builtin
"^(coins|remaining|bytes32|bytes64|int257|u?int(?:2[0-5][0-6]|1[0-9][0-9]|[1-9][0-9]?))$"))
(#any-of? @type.builtin "int257" "coins" "remaining" "bytes32" "bytes64")
(#lua-match? @type.builtin "^u?int2[0-5][0-6]$")
(#lua-match? @type.builtin "^u?int1[0-9][0-9]$")
(#lua-match? @type.builtin "^u?int[1-9][0-9]?$"))

; string
; ------
Expand Down
2 changes: 1 addition & 1 deletion test/sample/example.tact
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ trait MyTrait {
}
}

contract MyContract with MyTrait, Ownable? {
contract MyContract with MyTrait, Ownable {
owner: Address; // comment
value: Int as uint32 = 1230;
counters: map<Int, Address> /* Address, "Address" */ ;
Expand Down

0 comments on commit 2fcb6f1

Please sign in to comment.