+1
−0
+35
−0
File changed.
Preview size limit exceeded, changes collapsed.
Loading
Currently, if you write a char literal like '1' in a kernel, the single quotes get removed. This can cause confusing behavior if the programmer types something like `if (my_string[0] == '1')`, which becomes `if (my_string[0] == 1)` (likely always evaluating to false). So add support for basic C++ character literals to the xasm TokenCollector grammar. This does not handle all cases of char literals [1], such as wide character literals or character literals containing string escapes like `\n`, but at least now the most common cases work. 1. https://en.cppreference.com/w/cpp/language/character_literal Signed-off-by:Austin Adams <aja@gatech.edu>
File changed.
Preview size limit exceeded, changes collapsed.