Code is generated from grammar.js, which gets built into a library. That
library gets loaded by a text editor. So someone might argue that the GPL might
infect that text editor.
We do not want that argument to come up, so let's use MIT for that code.
Commit 183278c0e8 exposed the following
statement to the parser with a trailing semicolon:
if (val > 50) {
return green;
} else if val > 40 {
return yellow;
} else {
return blue;
};
Updated the version from 1.1 to 1.2
Renamed the header to "Slint Royalty-free Desktop, Mobile, and Web Applications License"
Added definition of "Mobile Application" and grant of right
Moved "Limitations" to 3rd section and "License Conditions - Attributions" to 2nd section
Added flexibility to choose between showing "MadeWithSlint" as a dialog/splash screen or on a public webpage
Moved the para on copyright notices to section under "Limitations"
As per API review:
- In the Rust and C++ API we use `set_nine_slice_edges` because the getter couldn't start with 9
- in english we spell number less than 10 with letters and this is a name
The latest tree-sitter made it glaringly obvious
that some of our tests ended up containing
`MISSING` nodes, inserted where tree-sitter
expected a token that it did not see in the input.
Fix those bugs in the parser.
Clean up the `grammar.js` file and improve the queries.
Document how to inject `slint` into the rust parser to get highlighting
for the `slint!` macro in rust files.