Skip to content
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

[PHP] Adjust snippet selectors #3631

Merged
merged 1 commit into from
Jan 21, 2023

Conversation

deathaxe
Copy link
Collaborator

This commit adds text.html.php to those snippets which are currently triggered by embedding.php - source.php only.

The goal is to enable those snippets in inherit syntax such as Laravel Blade, which don't use embedding.php but will probably be scoped text.html.php.blade.

Note

Basically embedding.php is maintained only in order to enable those snippets in an empty document, as text.html.php is added to stack not before the first character is typed.

This commit adds `text.html.php` to those snippets which are currently
triggered by `embedding.php - source.php` only.

The goal is to enable those snippets in inherit syntax such as
Laravel Blade, which don't use `embedding.php` but will probably be
scoped `text.html.php.blade`.

Note: 

Basically `embedding.php` is maintained only in order to enable those
snippets in an empty document, as `text.html.php` is added to stack not
before the first character is typed.
@deathaxe
Copy link
Collaborator Author

deathaxe commented Dec 22, 2022

I've decided to stay with text.html.blade in Medalink/laravel-blade#195 as it was the scope being used before.

Will need to think about relevance of this PR and possible other implications about snippet selectors in templates, I've learned about during the last few days.

It means, there may be further tweaks needed to avoid snippets from being triggered within embedded template code or directive's etc.

@deathaxe deathaxe added the on hold Something that can't be done, or done correctly, right now label Dec 22, 2022
@deathaxe deathaxe removed the on hold Something that can't be done, or done correctly, right now label Jan 21, 2023
@deathaxe deathaxe merged commit 5449fb0 into sublimehq:master Jan 21, 2023
@deathaxe deathaxe deleted the pr/php/adjust-snippet-selectors branch January 21, 2023 16:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants