Skip to content

Commit

Permalink
Add void to predefined types (#249)
Browse files Browse the repository at this point in the history
* Add test case with `void*` type

* Add `void` to predefined types

* Remove `void_keyword` from `constant.builtin` highlighting
  • Loading branch information
tamasvajk committed Dec 19, 2022
1 parent d83b3c6 commit 18a531d
Show file tree
Hide file tree
Showing 14 changed files with 463,318 additions and 465,315 deletions.
6 changes: 3 additions & 3 deletions corpus/attributes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ class Class<[A, B][C()]T1> {
(attribute_list (attribute (identifier) (attribute_argument_list)))
(identifier)))
(declaration_list
(method_declaration (void_keyword) (identifier)
(method_declaration (predefined_type) (identifier)
(type_parameter_list
(type_parameter
(attribute_list (attribute (identifier)))
Expand Down Expand Up @@ -312,7 +312,7 @@ void A() { }
(global_statement
(local_function_statement
(attribute_list (attribute (identifier)))
(void_keyword)
(predefined_type)
(identifier)
(parameter_list)
(block))))
Expand All @@ -330,7 +330,7 @@ void A() { }
(local_function_statement
(attribute_list
(attribute (generic_name (identifier) (type_argument_list (identifier) (identifier)))))
(void_keyword)
(predefined_type)
(identifier)
(parameter_list)
(block))))
Expand Down
Loading

0 comments on commit 18a531d

Please sign in to comment.