rename none to null

This commit is contained in:
2026-07-21 22:59:51 +02:00
parent 1619ea98a3
commit 402871ef7a
44 changed files with 3771 additions and 3767 deletions
+3 -3
View File
@@ -461,7 +461,7 @@ module.exports = grammar({
$.multiline_string,
$.character,
$.boolean,
$.none,
$.null,
$.undefined,
),
@@ -644,7 +644,7 @@ module.exports = grammar({
)),
boolean: _ => choice('true', 'false'),
none: _ => 'none',
null: _ => 'null',
undefined: _ => 'undefined',
sink: _ => '_',
@@ -653,7 +653,7 @@ module.exports = grammar({
alias(choice(
'test', 'func', 'c_func', 'struct', 'c_struct', 'opaque', 'union', 'enum',
'distinct', 'alias', 'import', 'hide', 'return', 'try', 'catch', 'mut',
'none', 'undefined', 'orelse', 'and', 'or', 'xor', 'if', 'while', 'for',
'null', 'undefined', 'orelse', 'and', 'or', 'xor', 'if', 'while', 'for',
'expand', 'break', 'continue', 'defer', 'errdefer', 'yield', 'match', 'else',
'true', 'false',
'void', 'type', 'anyopaque', 'bool', 'int', 'uint', 'float', 'range',