Comments (3)
Thanks, yes that seems like a good short-term approach. As an aside, I think U+2019 is the preferred character for possessive apostrophes, which would avoid the issue in this case at least.
from wtfautolayout.
Thanks for raising this issue. This relates to the identifier
parser in ConstraintsParser+Instances.swift
:
Currently it does not allow single-quote marks, which stops it from greedily consuming the whole line as an identifier. It will be a challenge to address this issue within the current limitations of the parsing framework, especially to avoid unrelated errors being reported as bad identifiers (since the framework reports the error furthest along the input stream).
I'll mark this as an enhancement, and give it some thought. Thanks again.
from wtfautolayout.
Thanks @johnpatrickmorgan, that sounds great! Is it possible to detect that there's an odd number of apostrophes and update the error message to reflect that as a short-term fix? Admittedly I have not looked through the source code -- so I don't know if it's possible -- just trying to offer some potential help for other developers scratching their heads as I was yesterday
from wtfautolayout.
Related Issues (20)
- Cannot Parse _UISystemBaselineConstraint HOT 2
- Text not rendered correctly HOT 1
- Application error HOT 1
- Unexpected input issue with NSSpace HOT 1
- Make a Graphic Rendering HOT 1
- Unexpected Input for ']' HOT 1
- file name with + sign shows syntax error HOT 1
- www prefix doesnโt work with https HOT 5
- Error: Expected: '.' in dot attribute HOT 2
- Permalink fails when code contains ampersand & HOT 2
- Issue parsing _UISystemBaselineConstraint HOT 2
- Parse issue HOT 5
- Preserve constraint identifiers HOT 1
- Parsing Issues HOT 1
- It would be nice to also parse `po view.constraints`
- Issue Running Project on Localhost - M1 MacBook Type 'StaticString' does not conform to protocol 'Collection'
- Issue Running Project on Localhost - M1 MacBook ,Type 'StaticString' does not conform to protocol 'Collection'
- Add checkbox to mark correct constraint HOT 2
- Custom naming of views HOT 1
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 wtfautolayout.