New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update Alloy DSL for Alloy 6 #1963
Commits on Nov 17, 2021
-
Make default style meet WCAG AA
Accessibility by default is important. The colors with a too low contrast were adjusted just so much that they match the required contrast of 4.5. Part of pygments#1718.
Configuration menu - View commit details
-
Copy full SHA for 089a723 - Browse repository at this point
Copy the full SHA 089a723View commit details -
Configuration menu - View commit details
-
Copy full SHA for 970dc34 - Browse repository at this point
Copy the full SHA 970dc34View commit details -
* Correctly identify whitespace. * Merge consecutive tokens where possible. * Consistently use String.Double for the opening and closing quotation marks
Configuration menu - View commit details
-
Copy full SHA for 622609f - Browse repository at this point
Copy the full SHA 622609fView commit details -
Correctly identify whitespace.
Configuration menu - View commit details
-
Copy full SHA for cd897be - Browse repository at this point
Copy the full SHA cd897beView commit details -
Use a simpler expression to match comments in HTML/XML.
Configuration menu - View commit details
-
Copy full SHA for fe3e101 - Browse repository at this point
Copy the full SHA fe3e101View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6fcc278 - Browse repository at this point
Copy the full SHA 6fcc278View commit details -
Configuration menu - View commit details
-
Copy full SHA for 272b1fe - Browse repository at this point
Copy the full SHA 272b1feView commit details -
Configuration menu - View commit details
-
Copy full SHA for 28c9d43 - Browse repository at this point
Copy the full SHA 28c9d43View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6dd14ca - Browse repository at this point
Copy the full SHA 6dd14caView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8555313 - Browse repository at this point
Copy the full SHA 8555313View commit details -
wcag-contrast-ratio is now a build-time dependency for the docs.
Configuration menu - View commit details
-
Copy full SHA for ea12e00 - Browse repository at this point
Copy the full SHA ea12e00View commit details -
Add missing colors to dark styles
Some dark styles did not define a color for every token type, resulting in black text (the browser default for text) on dark backgrounds (defined by the styles) unless the web page had some CSS to remedy that like: body { color: white; background: black; } We however don't want the readability of styles to rely on external CSS. Part of pygments#1718. Fixes some unreadable styles reported in pygments#1526.
Configuration menu - View commit details
-
Copy full SHA for 7be47bb - Browse repository at this point
Copy the full SHA 7be47bbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0d19572 - Browse repository at this point
Copy the full SHA 0d19572View commit details -
Configuration menu - View commit details
-
Copy full SHA for e2e0d4f - Browse repository at this point
Copy the full SHA e2e0d4fView commit details -
Configuration menu - View commit details
-
Copy full SHA for cf51855 - Browse repository at this point
Copy the full SHA cf51855View commit details -
Configuration menu - View commit details
-
Copy full SHA for ebf0161 - Browse repository at this point
Copy the full SHA ebf0161View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4e34d1a - Browse repository at this point
Copy the full SHA 4e34d1aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7a8223c - Browse repository at this point
Copy the full SHA 7a8223cView commit details
Commits on Nov 29, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 7da4cb2 - Browse repository at this point
Copy the full SHA 7da4cb2View commit details -
Configuration menu - View commit details
-
Copy full SHA for c48cca4 - Browse repository at this point
Copy the full SHA c48cca4View commit details -
Fix highlighting for alloy facts
Alloy (http://alloytools.org/) facts can take a string token in addition to an identifier. This is because the name isn't actually used for facts, it's just for readability. This is technically undocumented behavior, but it's widely used in legacy specs and is handled this way in the official Alloy IDE.
Configuration menu - View commit details
-
Copy full SHA for ddf0217 - Browse repository at this point
Copy the full SHA ddf0217View commit details -
Add new Alloy 6 temporal keywords
Alloy 6 adds temporal logic to Alloy. This includes the following keywords: * Three new symbols: `'` (prime), `..` (step interval), and `;` (sequential composition) * Five future-time keywords: `always`, `after`, `eventually`, `until`, `releases` * Five past-time keywords: `historically`, `before`, `once`, `since`, `triggered` * A new `steps` keyword for specifying a range to model check. See here for full changes: https://alloytools.org/alloy6.html
Configuration menu - View commit details
-
Copy full SHA for fc6b812 - Browse repository at this point
Copy the full SHA fc6b812View commit details -
Legacy alloy uses `'` to distinguish variables: all b, b': Foo | bar But since Alloy 6 makes `'` into an operator, the new recommendation is to use `"`: all b, b": Foo | bar See https://alloytools.org/alloy6.html#compatibility-with-pre-6-models. The lexer currently reads `b"` as starting a string. This commit fixes this by only having `"` begin a string if it's the start of a token. Additionally, `'` is removed from identifiers.
Configuration menu - View commit details
-
Copy full SHA for 2759c7a - Browse repository at this point
Copy the full SHA 2759c7aView commit details -
Alloy 6 recommends changing `'` in legacy specs to `"`. Since this is a breaking change, the golden test is updated to reflect that.
Configuration menu - View commit details
-
Copy full SHA for f92ecf0 - Browse repository at this point
Copy the full SHA f92ecf0View commit details -
Configuration menu - View commit details
-
Copy full SHA for b0aa980 - Browse repository at this point
Copy the full SHA b0aa980View commit details
Commits on Nov 18, 2022
-
Configuration menu - View commit details
-
Copy full SHA for fa8755a - Browse repository at this point
Copy the full SHA fa8755aView commit details -
Fix highlighting for alloy facts
Alloy (http://alloytools.org/) facts can take a string token in addition to an identifier. This is because the name isn't actually used for facts, it's just for readability. This is technically undocumented behavior, but it's widely used in legacy specs and is handled this way in the official Alloy IDE.
Configuration menu - View commit details
-
Copy full SHA for 41293ec - Browse repository at this point
Copy the full SHA 41293ecView commit details -
Add new Alloy 6 temporal keywords
Alloy 6 adds temporal logic to Alloy. This includes the following keywords: * Three new symbols: `'` (prime), `..` (step interval), and `;` (sequential composition) * Five future-time keywords: `always`, `after`, `eventually`, `until`, `releases` * Five past-time keywords: `historically`, `before`, `once`, `since`, `triggered` * A new `steps` keyword for specifying a range to model check. See here for full changes: https://alloytools.org/alloy6.html
Configuration menu - View commit details
-
Copy full SHA for ee9fd8f - Browse repository at this point
Copy the full SHA ee9fd8fView commit details -
Legacy alloy uses `'` to distinguish variables: all b, b': Foo | bar But since Alloy 6 makes `'` into an operator, the new recommendation is to use `"`: all b, b": Foo | bar See https://alloytools.org/alloy6.html#compatibility-with-pre-6-models. The lexer currently reads `b"` as starting a string. This commit fixes this by only having `"` begin a string if it's the start of a token. Additionally, `'` is removed from identifiers.
Configuration menu - View commit details
-
Copy full SHA for 3b57033 - Browse repository at this point
Copy the full SHA 3b57033View commit details -
Alloy 6 recommends changing `'` in legacy specs to `"`. Since this is a breaking change, the golden test is updated to reflect that.
Configuration menu - View commit details
-
Copy full SHA for bed19fb - Browse repository at this point
Copy the full SHA bed19fbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3e9d1f6 - Browse repository at this point
Copy the full SHA 3e9d1f6View commit details -
As mentioned in pygments#1963 (comment), the problem is that the rule matched . before .., so .. would never be matched. Fixed here.
Configuration menu - View commit details
-
Copy full SHA for f64c531 - Browse repository at this point
Copy the full SHA f64c531View commit details -
Configuration menu - View commit details
-
Copy full SHA for 79f60b9 - Browse repository at this point
Copy the full SHA 79f60b9View commit details