Comments (2)
I think that the form in which a single character is represented by 2 unicode points is the Modified utf8 with surrogate pairs that is used when converting from utf16 to utf8.
I'm still trying to understand if that is the case and, if so, if there's some way to group those characters without refactoring the one-by-one logic (this problem should affect strings, templates and variabile names).
I'm very busy right now but i will try to work on it in some weeks.
from peast.
I've just released a new version with surrogate pairs support in strings and templates. No need to change variables name parsing since they are not allowed as variable names. Thank you for reporting!
from peast.
Related Issues (20)
- Incorrect parsing of return statements with multi line template literals HOT 1
- Parse error with question mark followed by dot in ternary operator HOT 4
- Question: Known to PHP transpilers HOT 2
- Fails to parse some JS HOT 6
- Security Policy questions HOT 3
- Customize the grammar a bit? HOT 1
- Fatal error when xdebug enabled HOT 3
- wp i18n make-pot (WordPress) failing to parse specific JavaScript code HOT 3
- Failed to parse specific js code HOT 1
- Question: Is it possible to query by key name? HOT 4
- Utils::quoteLiteralString escapes \uFFF characters HOT 3
- async function declaration gets stripped HOT 3
- Generating optimized autoload files error → Could not scan for classes inside HOT 2
- Parsing issue HOT 2
- Required block brackets are removed on case statements HOT 1
- Parser chokes on a method named async HOT 1
- Peast cannot parse comma expression in assignment expression prior to ES8 (ES2017) HOT 7
- Improper regex string replacement (for a lack of better words) HOT 2
- Non-empty invalid script is perceived as empty valid script HOT 1
- Unexpected syntax error when parsing a regexp with backslashes and special characters (new in 1.16.1) HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from peast.