-
Notifications
You must be signed in to change notification settings - Fork 7
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
Refactor Syntax #39
Open
deathaxe
wants to merge
20
commits into
Sublime-Instincts:master
Choose a base branch
from
deathaxe:feat/refactor-syntax
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Refactor Syntax #39
Commits on Oct 19, 2024
-
Refactor folder structure after the scheme of Jinja2 package.
Configuration menu - View commit details
-
Copy full SHA for b839025 - Browse repository at this point
Copy the full SHA b839025View commit details -
This commit... 1. introduces common `meta.template.twig` applied scope accross Text/HTML/JS/CSS 2. adjusts snippet selectors 3. adds some helper key bindings 4. applies syntax specific toggle comment rules to apply Twig comments by default but retain original syntax's block comment as variant 2. 5. renames contexts to use hyphens as subword-separators 6. reorders contexts following lessons learned from Jinja and other template syntaxes 7. apply `meta.embedded` to tags and `source.twig` to their content. 8. fix various smaller highlighting bugs
Configuration menu - View commit details
-
Copy full SHA for ca98457 - Browse repository at this point
Copy the full SHA ca98457View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8a52166 - Browse repository at this point
Copy the full SHA 8a52166View commit details -
A formatting change and removal of some default operator/operand keys.
Configuration menu - View commit details
-
Copy full SHA for 92dd9b0 - Browse repository at this point
Copy the full SHA 92dd9b0View commit details
Commits on Oct 20, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 427b4f7 - Browse repository at this point
Copy the full SHA 427b4f7View commit details -
Use Twig comments for test assertions
This commit enables to test embedded CSS, JS, JSON code in Twig templates. Without it, all test assertions cause illegal syntax highlighting in script or style tags. Note: It drops some tests for leading `{{` and `{%` due to assertion punctuation now requiring 2 chars, but those are most often redundant anyway.
Configuration menu - View commit details
-
Copy full SHA for e669c94 - Browse repository at this point
Copy the full SHA e669c94View commit details -
Configuration menu - View commit details
-
Copy full SHA for 536a2e7 - Browse repository at this point
Copy the full SHA 536a2e7View commit details -
Align HTML (Twig) with HTML (Jinja)
- reorder style tag context - add some backward compatibility fixes
Configuration menu - View commit details
-
Copy full SHA for 05006cc - Browse repository at this point
Copy the full SHA 05006ccView commit details -
Configuration menu - View commit details
-
Copy full SHA for f44b204 - Browse repository at this point
Copy the full SHA f44b204View commit details -
Configuration menu - View commit details
-
Copy full SHA for 91f2e85 - Browse repository at this point
Copy the full SHA 91f2e85View commit details -
Configuration menu - View commit details
-
Copy full SHA for ca04bb3 - Browse repository at this point
Copy the full SHA ca04bb3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3599f7f - Browse repository at this point
Copy the full SHA 3599f7fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 567e3a1 - Browse repository at this point
Copy the full SHA 567e3a1View commit details -
Split snippets into block- and tag-snippets
Adds snippets for individual tags so typing a tag name and hitting tab key expands to an individual tag enclosed in `{% ... %}`: if| => {% if | %} embed| => {% embed | %} Triggers of existing block snippets are prefixed with `b` to avoid ambiguities with tag-snippets. Otherwise it would be unclear whether blocks or tags are expanded and/or completion panel was displayed requiring arrow key navigation. bif| {% if conditon %} | {% endif %} Reorganize snippets in individual sub-directories in case someone wants to disable individual ones based on type.
Configuration menu - View commit details
-
Copy full SHA for 5020129 - Browse repository at this point
Copy the full SHA 5020129View commit details -
Twig tags within quoted strings can contain same sort of quotes. This requires another strategy of handling embedded code blocks especially in inline event and style attributes. Solution is borrowed from PHP.
Configuration menu - View commit details
-
Copy full SHA for db2d435 - Browse repository at this point
Copy the full SHA db2d435View commit details -
Configuration menu - View commit details
-
Copy full SHA for 825f250 - Browse repository at this point
Copy the full SHA 825f250View commit details -
Configuration menu - View commit details
-
Copy full SHA for abc8388 - Browse repository at this point
Copy the full SHA abc8388View commit details -
Optimize embedded JS/CSS syntaxes
Instead of adding rules to pop on quotes to each context, this commit just replaces relevant string contexts of JS/CSS to make sure to pop contexts properly. This reduces compiled syntax cache from 820kB to 610kB.
Configuration menu - View commit details
-
Copy full SHA for d9425a5 - Browse repository at this point
Copy the full SHA d9425a5View commit details -
Fix twig statement tags in html tags
This commit fixes Twig statement tags and comments being scoped meta.attribute-with-value by accident.
Configuration menu - View commit details
-
Copy full SHA for 3d0d5bb - Browse repository at this point
Copy the full SHA 3d0d5bbView commit details -
Add some info about changed snippets. Snippets are basically aligned with Jinja2.
Configuration menu - View commit details
-
Copy full SHA for 1a0b0ee - Browse repository at this point
Copy the full SHA 1a0b0eeView commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.