You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was looking at the Carbon lexer as a template for another one (it was very small and C-like), and noticed an issue.
#2370 (CC @AmrDeveloper) switched the integer regexes to +?, which is non-greedy. As a result, multi-character integers such as 1234 or 0x1234abcd get lexed funny. They're not covered by tests, but the lex ends up being:
I was looking at the Carbon lexer as a template for another one (it was very small and C-like), and noticed an issue.
#2370 (CC @AmrDeveloper) switched the integer regexes to
+?
, which is non-greedy. As a result, multi-character integers such as1234
or0x1234abcd
get lexed funny. They're not covered by tests, but the lex ends up being:The text was updated successfully, but these errors were encountered: