forked from sakadigital/Sublime-Laravel-Snippet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
PHP.sublime-syntax
40 lines (40 loc) · 1.03 KB
/
PHP.sublime-syntax
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
%YAML 1.2
---
name: PHP
file_extensions:
- php
- php3
- php4
- php5
- phps
- phpt
- phtml
first_line_match: '^#!.*(?<!-)php[0-9]{0,1}\b'
scope: embedding.php
contexts:
main:
- match: ''
push: 'scope:text.html.basic'
with_prototype:
- match: '<\?(?i:php|=)?(?![^?]*\?>)'
captures:
0: punctuation.section.embedded.begin.php
push:
- meta_scope: meta.embedded.block.php
- meta_content_scope: source.php
- match: \?>
captures:
0: punctuation.section.embedded.end.php
pop: true
- include: 'scope:source.php'
- match: <\?(?i:php|=)?
captures:
0: punctuation.section.embedded.begin.php
push:
- meta_scope: meta.embedded.line.php
- meta_content_scope: source.php
- match: \?>
captures:
0: punctuation.section.embedded.end.php
pop: true
- include: 'scope:source.php'