Tags: natefaubion/purescript-language-cst-parser
Tags
Fix escaped Unicode hex literals parsing (#49) * Update package set * Fix escaped Unicode hex literals parsing The Char type represents a UTF-16 code unit, while String can contain any UTF-8 code unit. The same logic for escaping Unicode hexadecimal literals was used by both String and Char literal parsers. This caused a bug that prevented PureScript source code from having string literals containing UTF-8 hexadecimal literals representing code units larger than two bytes. * Add tests for Unicode hex literals * Update bench and parse-package-set dependencies * Update CONTRIBUTORS.md * Update parse-package-set's test package set. --------- Co-authored-by: Nathan Faubion <nathan@n-son.com>
Correctly parse ado without any statements in it (#46) * Correctly parse ado without any statements in it * Tests for ado/in, with empty cases and recovery * Inline tweaked layout helper with comments explaining why * Update src/PureScript/CST/Parser.purs --------- Co-authored-by: Nathan Faubion <natefaubion@users.noreply.github.com>
PreviousNext