-
Notifications
You must be signed in to change notification settings - Fork 590
/
CSS (PHP).sublime-syntax
49 lines (39 loc) · 1.11 KB
/
CSS (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
41
42
43
44
45
46
47
48
49
%YAML 1.2
---
name: CSS (PHP)
scope: source.css.php
version: 2
extends: Packages/CSS/CSS.sublime-syntax
file_extensions:
- css.php
variables:
ident_start: (?:{{nmstart}}|<\?)
contexts:
prototype:
- meta_prepend: true
- include: php-embedded
string-content:
- meta_prepend: true
- include: php-interpolations
php-interpolations:
- meta_include_prototype: false
- match: (?=<\?)
push: php-interpolation-body
php-interpolation-body:
- clear_scopes: 1
- meta_include_prototype: false
- include: php-embedded
- include: immediately-pop
php-embedded:
- meta_include_prototype: false
- match: <\?(?i:(?!php)ph?)
scope: meta.embedded.php punctuation.section.embedded.begin.php
- match: <\?(?i:php\b|=)?
scope: meta.embedded.php punctuation.section.embedded.begin.php
embed: Packages/PHP/PHP Source.sublime-syntax
embed_scope: meta.embedded.php source.php.embedded.css
escape: (\?>)(\s*\n)?
escape_captures:
0: meta.embedded.php
1: punctuation.section.embedded.end.php
2: meta.html-newline-after-php.php