aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/js_lexer.zig19
1 files changed, 1 insertions, 18 deletions
diff --git a/src/js_lexer.zig b/src/js_lexer.zig
index 43f3fb56a..05e76e77c 100644
--- a/src/js_lexer.zig
+++ b/src/js_lexer.zig
@@ -295,6 +295,7 @@ pub const Lexer = struct {
'8', '9' => {
try lexer.addUnsupportedSyntaxError("Legacy octal literals are not supported.");
},
+ // 2-digit hexadecimal
'x' => {
if (lexer.json_options != null) {
lexer.end = start + iter.i - width2;
@@ -341,24 +342,6 @@ pub const Lexer = struct {
},
}
- c3 = iter.nextCodepoint() orelse return lexer.syntaxError();
- width3 = iter.width;
- switch (c3) {
- '0'...'9' => {
- value = value * 16 | (c3 - '0');
- },
- 'a'...'f' => {
- value = value * 16 | (c3 + 10 - 'a');
- },
- 'A'...'F' => {
- value = value * 16 | (c3 + 10 - 'A');
- },
- else => {
- lexer.end = start + iter.i - width3;
- return lexer.syntaxError();
- },
- }
-
iter.c = value;
},
'u' => {
n value='vercel-test'>vercel-test Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/smoke/astro.build-main/src/components/landing/Demo.astro (unfollow)
AgeCommit message (Collapse)AuthorFilesLines
2023-07-11Filter out astro from `peerDependencies` in `astro add` (#7620)Gravatar Chris Swithinbank 2-1/+7
2023-07-11[ci] formatGravatar bluwy 1-1/+1
2023-07-11Refactor simple CLI commands (#7619)Gravatar Bjorn Lu 12-115/+123
2023-07-10fix: `astro info` command fallback for package manager (#7618)Gravatar Emanuele Stoppa 2-1/+7
2023-07-10Add CLI startup speed benchmark (#7617)Gravatar Bjorn Lu 5-11/+95
2023-07-10[ci] formatGravatar bluwy 1-1/+1