Comments (2)
Another example:
test.dot:
digraph graph_test {
start [
label="context.set('This \\\"shouldn\'t\\\" error');"
];
end [
label="End"
];
start-> end;
}
The above graph rendered to a PNG using graphviz
> dot -V
dot - graphviz version 2.49.3 (0)
> dot -Tpng -O test.dot
>
It looks like this allows the above to work.
char = {
!("\"" | "\\") ~ ANY
| "\\" ~ ("\"" | "\\" | "/" | "b" | "f" | "n" | "r" | "t" | "'" )
| "\\" ~ ("u" ~ ASCII_HEX_DIGIT{4})
// TODO: the following option is only valid for some attributes: https://graphviz.org/docs/attr-types/escString/
| "\\" ~ ("G" | "N" | "E" | "H" | "T" | "L")
| "\\" ~ ("u" ~ ASCII_HEX_DIGIT{4})
}
from graphviz-rust.
Yeah, it seems to be a hole in the grammar.
from graphviz-rust.
Related Issues (19)
- Inability to use Attribute builder with escaped strings
- Error when parsing comment after final closing bracket HOT 1
- Can’t handle escStrings and attribute names starting with “_” (e.g. the `GraphAttributes` in a simple graph’s `dot`/`xdot` output) HOT 1
- Implement `Into<CommandArg>` for `Layout`, `Format`, … HOT 2
- Release new version for into-attr-derive HOT 1
- Add license entry to Cargo.toml HOT 1
- Change the way of parsing GraphAttributes
- Node ports starting with a "compass letter" breaks parsing HOT 2
- png parsing HOT 2
- `NodeId` does not derive `Eq` HOT 2
- DotPrinter is adding an unneeded space after edges and before the semi-colon when there are no edge attributes.
- Special characters in IDs result in invalid output HOT 3
- DotPrinter is adding an extra level of indentation on all statements
- Add support for printing nodes with multiple attributes on separate lines. HOT 1
- Graph should be visible HOT 7
- dot pest update HOT 1
- Tests failing on macOS HOT 6
- Add Clone/Copy impls for enum cmd::Format, export a version of exec that takes a rendered graph, add more descriptive error messages HOT 3
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 graphviz-rust.