CARVIEW |
Select Language
HTTP/2 200
date: Fri, 18 Jul 2025 21:00:03 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
x-repository-download: git clone https://github.com/microsoft/TypeScript.git
etag: W/"c09d9d8be32d945fae3027720669f913"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=f826fe8NG28ktPT0EIgQoT4BQuG7WotIIxK0%2BtSsC2%2F6bstLewu7jtZoQk9FrKPO02unWpz6uCcJE08Ut8Jbe3uOl8JUKgwSi2jumjNkpaNULAQudhFrVw1ety2bTmRms8ylEbSEzWzQfgzvVaonaSZRzHhf0jYUKjAUv4%2FdazPGv%2BqQn3lxUX5%2FYyyJ0WEsNFs7PsvFRI%2F4DJZpz86dNG2M7QLHtP5yRhFu26cMVnM0rK4Y6EyGtbhnX0Qi1d7qVA%2FgB13u%2BIaZ6IsPDut%2F4g%3D%3D--XNeWt8aqzQ6stNIR--uTWHOniVbNtpRlBBzt0ejQ%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.104862243.1752872401; Path=/; Domain=github.com; Expires=Sat, 18 Jul 2026 21:00:01 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Sat, 18 Jul 2026 21:00:01 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: A476:148787:1747E6:1E64BE:687AB5D1
Numeric separators (#20324) · microsoft/TypeScript@9e51882 · GitHub
Dismiss banner
Copy file name to clipboardExpand all lines: src/compiler/diagnosticMessages.json
Copy file name to clipboard
Copy file name to clipboard
Copy file name to clipboard
Copy file name to clipboard
Copy file name to clipboard
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Commit 9e51882
authored
Numeric separators (#20324)
* Add support into octal and binary literals
* Add hex support
* And finally support all numeric literals and fix spelling
* Update error message
* Refactor error in scanner to take a position
* Scan no separators in escape sequences, add escape sequence tests
* More decimal tests from the spec presentation examples
* Permissive scanning of excess separators
* Remove unnecessary assignment
* Make code easier to follow1 parent 0c2d8d2 commit 9e51882Copy full SHA for 9e51882
File tree
Expand file treeCollapse file tree
45 files changed
+2834
-22
lines changedFilter options
- src/compiler
- tests
- baselines/reference
- cases/conformance/parser/ecmascriptnext/numericSeparators
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Expand file treeCollapse file tree
45 files changed
+2834
-22
lines changedsrc/compiler/diagnosticMessages.json
Copy file name to clipboardExpand all lines: src/compiler/diagnosticMessages.json+4Lines changed: 4 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3420 | 3420 |
| |
3421 | 3421 |
| |
3422 | 3422 |
| |
| 3423 | + | |
| 3424 | + | |
| 3425 | + | |
| 3426 | + | |
3423 | 3427 |
| |
3424 | 3428 |
| |
3425 | 3429 |
| |
|
+107-20Lines changed: 107 additions & 20 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
561 | 561 |
| |
562 | 562 |
| |
563 | 563 |
| |
564 |
| - | |
| 564 | + | |
565 | 565 |
| |
566 |
| - | |
| 566 | + | |
567 | 567 |
| |
568 | 568 |
| |
569 | 569 |
| |
| |||
852 | 852 |
| |
853 | 853 |
| |
854 | 854 |
| |
855 |
| - | |
| 855 | + | |
| 856 | + | |
| 857 | + | |
856 | 858 |
| |
| 859 | + | |
| 860 | + | |
857 | 861 |
| |
| 862 | + | |
858 | 863 |
| |
859 | 864 |
| |
860 | 865 |
| |
| 866 | + | |
| 867 | + | |
| 868 | + | |
| 869 | + | |
| 870 | + | |
| 871 | + | |
| 872 | + | |
| 873 | + | |
| 874 | + | |
| 875 | + | |
| 876 | + | |
| 877 | + | |
| 878 | + | |
| 879 | + | |
| 880 | + | |
| 881 | + | |
| 882 | + | |
| 883 | + | |
| 884 | + | |
| 885 | + | |
| 886 | + | |
| 887 | + | |
| 888 | + | |
| 889 | + | |
| 890 | + | |
| 891 | + | |
| 892 | + | |
| 893 | + | |
| 894 | + | |
| 895 | + | |
| 896 | + | |
| 897 | + | |
861 | 898 |
| |
862 | 899 |
| |
863 |
| - | |
| 900 | + | |
| 901 | + | |
| 902 | + | |
864 | 903 |
| |
865 | 904 |
| |
866 |
| - | |
| 905 | + | |
867 | 906 |
| |
868 | 907 |
| |
869 | 908 |
| |
870 | 909 |
| |
871 | 910 |
| |
872 | 911 |
| |
873 |
| - | |
874 |
| - | |
875 |
| - | |
876 |
| - | |
| 912 | + | |
| 913 | + | |
| 914 | + | |
| 915 | + | |
877 | 916 |
| |
878 | 917 |
| |
879 |
| - | |
| 918 | + | |
| 919 | + | |
| 920 | + | |
| 921 | + | |
| 922 | + | |
| 923 | + | |
| 924 | + | |
| 925 | + | |
880 | 926 |
| |
| 927 | + | |
| 928 | + | |
| 929 | + | |
| 930 | + | |
| 931 | + | |
| 932 | + | |
| 933 | + | |
881 | 934 |
| |
882 |
| - | |
883 | 935 |
| |
884 | 936 |
| |
885 | 937 |
| |
| |||
894 | 946 |
| |
895 | 947 |
| |
896 | 948 |
| |
897 |
| - | |
898 |
| - | |
| 949 | + | |
| 950 | + | |
899 | 951 |
| |
900 | 952 |
| |
901 | 953 |
| |
902 | 954 |
| |
903 | 955 |
| |
904 | 956 |
| |
905 |
| - | |
906 |
| - | |
| 957 | + | |
| 958 | + | |
907 | 959 |
| |
908 | 960 |
| |
909 |
| - | |
| 961 | + | |
910 | 962 |
| |
911 | 963 |
| |
| 964 | + | |
912 | 965 |
| |
913 | 966 |
| |
| 967 | + | |
| 968 | + | |
| 969 | + | |
| 970 | + | |
| 971 | + | |
| 972 | + | |
| 973 | + | |
| 974 | + | |
| 975 | + | |
| 976 | + | |
| 977 | + | |
| 978 | + | |
914 | 979 |
| |
915 | 980 |
| |
916 | 981 |
| |
| |||
929 | 994 |
| |
930 | 995 |
| |
931 | 996 |
| |
| 997 | + | |
| 998 | + | |
| 999 | + | |
932 | 1000 |
| |
933 | 1001 |
| |
934 | 1002 |
| |
| |||
1097 | 1165 |
| |
1098 | 1166 |
| |
1099 | 1167 |
| |
1100 |
| - | |
| 1168 | + | |
1101 | 1169 |
| |
1102 | 1170 |
| |
1103 | 1171 |
| |
| |||
1109 | 1177 |
| |
1110 | 1178 |
| |
1111 | 1179 |
| |
1112 |
| - | |
| 1180 | + | |
1113 | 1181 |
| |
1114 | 1182 |
| |
1115 | 1183 |
| |
| |||
1162 | 1230 |
| |
1163 | 1231 |
| |
1164 | 1232 |
| |
1165 |
| - | |
| 1233 | + | |
1166 | 1234 |
| |
1167 | 1235 |
| |
1168 | 1236 |
| |
| |||
1218 | 1286 |
| |
1219 | 1287 |
| |
1220 | 1288 |
| |
| 1289 | + | |
1221 | 1290 |
| |
1222 | 1291 |
| |
| 1292 | + | |
| 1293 | + | |
| 1294 | + | |
| 1295 | + | |
| 1296 | + | |
| 1297 | + | |
| 1298 | + | |
| 1299 | + | |
| 1300 | + | |
| 1301 | + | |
| 1302 | + | |
| 1303 | + | |
| 1304 | + | |
1223 | 1305 |
| |
1224 | 1306 |
| |
1225 | 1307 |
| |
| |||
1232 | 1314 |
| |
1233 | 1315 |
| |
1234 | 1316 |
| |
| 1317 | + | |
| 1318 | + | |
| 1319 | + | |
| 1320 | + | |
| 1321 | + | |
1235 | 1322 |
| |
1236 | 1323 |
| |
1237 | 1324 |
| |
| |||
1435 | 1522 |
| |
1436 | 1523 |
| |
1437 | 1524 |
| |
1438 |
| - | |
| 1525 | + | |
1439 | 1526 |
| |
1440 | 1527 |
| |
1441 | 1528 |
| |
|
+2-1Lines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1490 | 1490 |
| |
1491 | 1491 |
| |
1492 | 1492 |
| |
| 1493 | + | |
1493 | 1494 |
| |
1494 |
| - | |
| 1495 | + | |
1495 | 1496 |
| |
1496 | 1497 |
| |
1497 | 1498 |
| |
|
+1-1Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
346 | 346 |
| |
347 | 347 |
| |
348 | 348 |
| |
349 |
| - | |
| 349 | + | |
350 | 350 |
| |
351 | 351 |
| |
352 | 352 |
| |
|
tests/baselines/reference/parser.numericSeparators.binary.js
Copy file name to clipboard+12Lines changed: 12 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + |
tests/baselines/reference/parser.numericSeparators.binary.symbols
Copy file name to clipboard+7Lines changed: 7 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + |
tests/baselines/reference/parser.numericSeparators.binary.types
Copy file name to clipboard+13Lines changed: 13 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + |
tests/baselines/reference/parser.numericSeparators.binaryNegative.errors.txt
Copy file name to clipboard+50Lines changed: 50 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + |
tests/baselines/reference/parser.numericSeparators.binaryNegative.js
Copy file name to clipboard+34Lines changed: 34 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + |
You can’t perform that action at this time.
0 commit comments