-
Notifications
You must be signed in to change notification settings - Fork 0
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
Some JSON reworks #8
Commits on Dec 4, 2021
-
[JSON] Simplify JSON5 escape patterns
Removes some quotes and unnecessary groups.
Configuration menu - View commit details
-
Copy full SHA for fdeb5d0 - Browse repository at this point
Copy the full SHA fdeb5d0View commit details -
[JSON] Tidy mapping key contexts
Use `\"` as it is more common in most syntaxes. Use fixed order of quoted/unquoted key patterns in JSON5.
Configuration menu - View commit details
-
Copy full SHA for 65b0338 - Browse repository at this point
Copy the full SHA 65b0338View commit details -
Configuration menu - View commit details
-
Copy full SHA for c5f9f3e - Browse repository at this point
Copy the full SHA c5f9f3eView commit details -
[JSON] Remove unnecessary meta_include_prototype
This directive is required only if contexts are designed to be pushed or set onto stack directly. Example: main: - match: push: context context: - meta_include_prototype: false They are not needed if contexts are only `- include`ed.
Configuration menu - View commit details
-
Copy full SHA for 6c6ede1 - Browse repository at this point
Copy the full SHA 6c6ede1View commit details -
[JSON] Remove top-level-objects and meta.toc-list
Indexing top-level keys can be achieved by a selector in Symbol List.tmPreference even without `meta.toc-list`. Beyond that a general purpose JSON syntax doesn't need to distinguish between top-level and other mapping keys. Note: A common SymbolList.tmPreferences for all JSON dialects is sufficient.
Configuration menu - View commit details
-
Copy full SHA for f7b1f50 - Browse repository at this point
Copy the full SHA f7b1f50View commit details -
[JSON] Rename object body context
Only contexts whose purpose is to set a meta scope should contain a `meta` in their name. Note: Such contexts should use `...-body` or `...-content`. The latter one feels more natural for comments/strings while the former one should be preferred for code blocks.
Configuration menu - View commit details
-
Copy full SHA for 61f64e1 - Browse repository at this point
Copy the full SHA 61f64e1View commit details -
[JSON] Rename inside-... contexts
Such contexts should use `...-body` or `...-content`. The latter one feels more natural for comments/strings while the former one should be preferred for code blocks.
Configuration menu - View commit details
-
Copy full SHA for ebcec17 - Browse repository at this point
Copy the full SHA ebcec17View commit details -
[JSON] Enable interpolation in ecma mapping keys
This commit uses `{{identifier_start}}` and `{{identifier_break}}` to push and pop `mapping-key-ecma` context on/off stack. By not consuming anything, string interpolation is enabled for syntaxes which embed JSON. An example might be PHP HEREDOCs.
Configuration menu - View commit details
-
Copy full SHA for 5202263 - Browse repository at this point
Copy the full SHA 5202263View commit details -
Configuration menu - View commit details
-
Copy full SHA for d6a5b30 - Browse repository at this point
Copy the full SHA d6a5b30View commit details -
Configuration menu - View commit details
-
Copy full SHA for f7258bc - Browse repository at this point
Copy the full SHA f7258bcView commit details -
There's no use for that syntax as it is nothing else as plain JSON. Inheritance order is: JSON5 < JSONC < JSON
Configuration menu - View commit details
-
Copy full SHA for 384dcc7 - Browse repository at this point
Copy the full SHA 384dcc7View commit details -
[JSON] Be less restrictive with missing array separators
Just highlight the space illegal between two values, instead of the whole next value.
Configuration menu - View commit details
-
Copy full SHA for ad36b3f - Browse repository at this point
Copy the full SHA ad36b3fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 40c90df - Browse repository at this point
Copy the full SHA 40c90dfView commit details
Commits on Dec 5, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 2acda82 - Browse repository at this point
Copy the full SHA 2acda82View commit details -
Configuration menu - View commit details
-
Copy full SHA for bc94247 - Browse repository at this point
Copy the full SHA bc94247View commit details
Commits on Dec 6, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 5ee4121 - Browse repository at this point
Copy the full SHA 5ee4121View commit details -
Configuration menu - View commit details
-
Copy full SHA for 222ab04 - Browse repository at this point
Copy the full SHA 222ab04View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8c952ba - Browse repository at this point
Copy the full SHA 8c952baView commit details
Commits on Dec 7, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 4c9a692 - Browse repository at this point
Copy the full SHA 4c9a692View commit details -
Configuration menu - View commit details
-
Copy full SHA for 59291c9 - Browse repository at this point
Copy the full SHA 59291c9View commit details -
Configuration menu - View commit details
-
Copy full SHA for ce53c28 - Browse repository at this point
Copy the full SHA ce53c28View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0335220 - Browse repository at this point
Copy the full SHA 0335220View commit details