boostorg / boostorg/quickbook

Unexpected character warning

Open
#6 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
15
Forks
34
PR merge metrics
No merged PRs in 30d

Description

I am trying to fix Spirit docs https://github.com/boostorg/spirit/blob/develop/doc/lex/lexer.qbk#L34, but having troubles with bogus warning or broken escaping.

Given:
```
[[`"[xyz]\"foo"`] [The literal string `[xyz]"foo`]]
```

Renders correctly:
![image](https://user-images.githubusercontent.com/2743474/50182918-82c3c300-0308-11e9-84a9-e78acf7a73d0.png)

But generates a warning:
```
lex/lexer.qbk:34: warning: in column:50, unexpected character: "
```

Fixing it like this:
```
[[`"[xyz]\"foo"`] [The literal string `[xyz]\"foo`]]
```

Does not eliminate it:
```
lex/lexer.qbk:34: warning: in column:51, unexpected character: "
```

And leads to incorrect rendering:
![image](https://user-images.githubusercontent.com/2743474/50183056-ee0d9500-0308-11e9-9644-03a73f82d1de.png)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.