Unnamed repository; edit this file 'description' to name the repository.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
; Functions
(private_function
  (function_signature
    (identifier) @definition.function))

(read_only_function
  (function_signature
    (identifier) @definition.function))

(public_function
  (function_signature
    (identifier) @definition.function))

; Traits
(trait_definition
  "define-trait" . (identifier) @definition.interface)

; Constants
(constant_definition
  "define-constant" . (identifier) @definition.constant)

; Data variables
(variable_definition
  "define-data-var" . (identifier) @definition.constant)

; Maps
(mapping_definition
  "define-map" . (identifier) @definition.struct)

; Tokens
(fungible_token_definition
  "define-fungible-token" . (identifier) @definition.type)

(non_fungible_token_definition
  "define-non-fungible-token" . (identifier) @definition.type)