I am trying to remove the text.html.basic
that appears when I hit CTRL + ALT + SHIFT + P
in the interior PHP tags (<?php ?>
). It should appear everything from that list without this one. that should be seen only in the bottom like on the second picture.
YAML CODE (PHP.sublime-syntax)
%YAML 1.2
---
name: PHP
version: 2
file_extensions:
- php
- php3
- php4
- php5
- php7
- phps
- phpt
- phtml
first_line_match: '^(#!.*[^-]php[0-9]?|<\?php)\b'
scope: embedding.php
contexts:
main:
- match: ''
push: scope:text.html.basic
with_prototype:
- match: <\?(?i:php|=)?(?![^?]*\?>)
scope: punctuation.section.embedded.begin.php
push:
- meta_scope: meta.embedded.block.php
- meta_content_scope: source.php
- include: php-end-tag-pop
- include: scope:source.php
- match: <\?(?i:php|=)?
scope: punctuation.section.embedded.begin.php
push:
- meta_scope: meta.embedded.line.php
- meta_content_scope: source.php
- include: php-end-tag-pop
- include: scope:source.php
php-end-tag-pop:
- match: (\?>)(\s*\n)?
captures:
1: punctuation.section.embedded.end.php
2: meta.html-newline-after-php.php
pop: 1