Merge remote-tracking branch 'origin/master' into ast-memory-layout

This commit is contained in:
Andrew Kelley
2021-02-24 15:08:23 -07:00
43 changed files with 620 additions and 164 deletions

View File

@@ -1535,7 +1535,7 @@ test "tokenizer - unknown length pointer and then c pointer" {
});
}
test "tokenizer - char literal with hex escape" {
test "tokenizer - code point literal with hex escape" {
testTokenize(
\\'\x1b'
, &.{.char_literal});
@@ -1544,7 +1544,7 @@ test "tokenizer - char literal with hex escape" {
, &.{ .invalid, .invalid });
}
test "tokenizer - char literal with unicode escapes" {
test "tokenizer - code point literal with unicode escapes" {
// Valid unicode escapes
testTokenize(
\\'\u{3}'
@@ -1594,7 +1594,7 @@ test "tokenizer - char literal with unicode escapes" {
, &.{ .invalid, .integer_literal, .invalid });
}
test "tokenizer - char literal with unicode code point" {
test "tokenizer - code point literal with unicode code point" {
testTokenize(
\\'💩'
, &.{.char_literal});