Make 'new' constructor keyword

This commit is contained in:
Bruno BELANYI 2022-06-04 21:35:14 +02:00
parent 9c51cbc93f
commit 065ad5f760
2 changed files with 5 additions and 1 deletions

View file

@ -22,6 +22,10 @@
"while" "while"
] @keyword.repeat ] @keyword.repeat
[
"new"
] @keyword.constructor
[ [
"array" "array"
(break_expression) (break_expression)

View file

@ -18,7 +18,7 @@ let
} }
var object := new B var object := new B
/* ^ keyword */ /* ^ keyword.constructor */
in in
object.a := 27; object.a := 27;
/* ^ property */ /* ^ property */