question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"""\nabc\n""" and """abc""" are not distinguishable from the ast

See original GitHub issue

Both of then look exactly the same. I would expect \n to be part of the value.

"""abc"""
type T {
  a: Int
}

"""
abc
"""
type T {
  a: Int
}

{ kind: 'StringValue',
  value: 'abc',
  block: true,
  loc: { start: 0, end: 9 } }
{ kind: 'StringValue',
  value: 'abc',
  block: true,
  loc: { start: 31, end: 42 } }

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
IvanGoncharovcommented, Dec 31, 2017

@vjeux It’s intentional:

Note: Block string values are interpreted to exclude blank initial and trailing lines and uniform indentation with {BlockStringValue()}.

https://github.com/facebook/graphql/blob/master/spec/Appendix B -- Grammar Summary.md#lexical-tokens

0reactions
vjeuxcommented, Jan 2, 2018

Yes, sorry!

Read more comments on GitHub >

github_iconTop Results From Across the Web

At ABC, CBS and NBC News, Accentuating the Differences
Influenced by cable and the Internet, the network news divisions of ABC, CBS and NBC have shifted the focus to differentiating their nightly ......
Read more >
Are NBC and ABC owned by the same company? - Quora
No. ABC is owned by Disney. NBC is owned by Comcast, although I've heard that's a front for the Scheinhardt wig company.
Read more >
History of the American Broadcasting Company - Wikipedia
Along with NBC and CBS, ABC is one of the traditional "Big Three" American television networks. ABC was founded as a radio network...
Read more >
ABC and CBS Expected to Dump 10 PM Hour if NBC Does ...
While ABC did not respond to a request for comment, CBS president and CEO George Cheeks said in a statement to TheWrap the...
Read more >
The Public and Broadcasting
We do not license TV or radio networks (such as CBS, NBC, ABC or Fox) or other ... day of the last full...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found