-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathUTL.sublime-syntax
36 lines (34 loc) · 1.04 KB
/
UTL.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
%YAML 1.2
---
# See http://www.sublimetext.com/docs/3/syntax.html
name: UTL
file_extensions:
- utl
scope: embedding.utl
contexts:
main:
# Strings begin and end with quotes, and use backslashes as an escape
# character
- match: ''
push: scope:text.html.basic
with_prototype:
- match: \[%-?(?![^-]?[^%]*%\])
scope: punctuation.section.embedded.begin.utl
push:
- meta_scope: meta.embedded.block.utl
- meta_content_scope: source.utl
- include: utl-end-tag-pop
- include: scope:source.utl
- match: \[%-?
scope: punctuation.section.embedded.begin.utl
push:
- meta_scope: meta.embedded.line.utl
- meta_content_scope: source.utl
- include: utl-end-tag-pop
- include: scope:source.utl
utl-end-tag-pop:
- match: (-?%\])(\s*\n*)?
captures:
1: punctuation.section.embedded.end.utl
2: meta.html-newline-after-utl.utl
pop: true