Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6530b4f

Browse files
author
Ener-Getick
committed
Fix a bug (EXSyst#3)
1 parent 9a792cc commit 6530b4f

6 files changed

Lines changed: 38 additions & 36 deletions

File tree

grammars/JSON (twig).cson

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,22 +26,22 @@
2626

2727
'repository':
2828
'twig-comment-tags':
29-
'begin': '\\{#-?'
29+
'begin': '{#'
3030
'beginCaptures':
3131
'0':
3232
'name': 'punctuation.definition.comment.begin.twig'
33-
'end': '-?#\\}'
33+
'end': '#}'
3434
'endCaptures':
3535
'0':
3636
'name': 'punctuation.definition.comment.end.twig'
3737
'name': 'comment.block.twig'
3838

3939
'twig-variable-tags':
40-
'begin': '\\{\\{-?'
40+
'begin': '{(?:{|(?<={#))'
4141
'beginCaptures':
4242
'0':
4343
'name': 'punctuation.section.tag.twig'
44-
'end': '-?\\}\\}'
44+
'end': '}(?:}|(?=#}))'
4545
'endCaptures':
4646
'0':
4747
'name': 'punctuation.section.tag.twig'
@@ -92,11 +92,11 @@
9292
]
9393

9494
'twig-expression-tags':
95-
'begin': '\\{\\%-?'
95+
'begin': '(?:{|(?<={#))%'
9696
'beginCaptures':
9797
'0':
9898
'name': 'punctuation.section.tag.twig'
99-
'end': '-?\\%\\}'
99+
'end': '%(?:}|(?=#}))'
100100
'endCaptures':
101101
'0':
102102
'name': 'punctuation.section.tag.twig'

grammars/css (twig).cson

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,22 +26,22 @@
2626

2727
'repository':
2828
'twig-comment-tags':
29-
'begin': '\\{#-?'
29+
'begin': '{#'
3030
'beginCaptures':
3131
'0':
3232
'name': 'punctuation.definition.comment.begin.twig'
33-
'end': '-?#\\}'
33+
'end': '#}'
3434
'endCaptures':
3535
'0':
3636
'name': 'punctuation.definition.comment.end.twig'
3737
'name': 'comment.block.twig'
3838

3939
'twig-variable-tags':
40-
'begin': '\\{\\{-?'
40+
'begin': '{(?:{|(?<={#))'
4141
'beginCaptures':
4242
'0':
4343
'name': 'punctuation.section.tag.twig'
44-
'end': '-?\\}\\}'
44+
'end': '}(?:}|(?=#}))'
4545
'endCaptures':
4646
'0':
4747
'name': 'punctuation.section.tag.twig'
@@ -92,11 +92,11 @@
9292
]
9393

9494
'twig-expression-tags':
95-
'begin': '\\{\\%-?'
95+
'begin': '(?:{|(?<={#))%'
9696
'beginCaptures':
9797
'0':
9898
'name': 'punctuation.section.tag.twig'
99-
'end': '-?\\%\\}'
99+
'end': '%(?:}|(?=#}))'
100100
'endCaptures':
101101
'0':
102102
'name': 'punctuation.section.tag.twig'

grammars/html (twig).cson

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,22 +30,22 @@
3030

3131
'repository':
3232
'twig-comment-tags':
33-
'begin': '\\{#-?'
33+
'begin': '{#'
3434
'beginCaptures':
3535
'0':
3636
'name': 'punctuation.definition.comment.begin.twig'
37-
'end': '-?#\\}'
37+
'end': '#}'
3838
'endCaptures':
3939
'0':
4040
'name': 'punctuation.definition.comment.end.twig'
4141
'name': 'comment.block.twig'
4242

4343
'twig-variable-tags':
44-
'begin': '\\{\\{-?'
44+
'begin': '{(?:{|(?<={#))'
4545
'beginCaptures':
4646
'0':
4747
'name': 'punctuation.section.tag.twig'
48-
'end': '-?\\}\\}'
48+
'end': '}(?:}|(?=#}))'
4949
'endCaptures':
5050
'0':
5151
'name': 'punctuation.section.tag.twig'
@@ -96,11 +96,11 @@
9696
]
9797

9898
'twig-expression-tags':
99-
'begin': '\\{\\%-?'
99+
'begin': '(?:{|(?<={#))%'
100100
'beginCaptures':
101101
'0':
102102
'name': 'punctuation.section.tag.twig'
103-
'end': '-?\\%\\}'
103+
'end': '%(?:}|(?=#}))'
104104
'endCaptures':
105105
'0':
106106
'name': 'punctuation.section.tag.twig'

grammars/twig.cson

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,22 +19,22 @@
1919

2020
'repository':
2121
'twig-comment-tags':
22-
'begin': '\\{#-?'
22+
'begin': '{#'
2323
'beginCaptures':
2424
'0':
2525
'name': 'punctuation.definition.comment.begin.twig'
26-
'end': '-?#\\}'
26+
'end': '#}'
2727
'endCaptures':
2828
'0':
2929
'name': 'punctuation.definition.comment.end.twig'
3030
'name': 'comment.block.twig'
3131

3232
'twig-variable-tags':
33-
'begin': '\\{\\{-?'
33+
'begin': '{(?:{|(?<={#))'
3434
'beginCaptures':
3535
'0':
3636
'name': 'punctuation.section.tag.twig'
37-
'end': '-?\\}\\}'
37+
'end': '}(?:}|(?=#}))'
3838
'endCaptures':
3939
'0':
4040
'name': 'punctuation.section.tag.twig'
@@ -85,11 +85,11 @@
8585
]
8686

8787
'twig-expression-tags':
88-
'begin': '\\{\\%-?'
88+
'begin': '(?:{|(?<={#))%'
8989
'beginCaptures':
9090
'0':
9191
'name': 'punctuation.section.tag.twig'
92-
'end': '-?\\%\\}'
92+
'end': '%(?:}|(?=#}))'
9393
'endCaptures':
9494
'0':
9595
'name': 'punctuation.section.tag.twig'

grammars/xml (twig).cson

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,24 +41,25 @@
4141
}
4242
]
4343

44+
4445
'repository':
4546
'twig-comment-tags':
46-
'begin': '\\{#-?'
47+
'begin': '{#'
4748
'beginCaptures':
4849
'0':
4950
'name': 'punctuation.definition.comment.begin.twig'
50-
'end': '-?#\\}'
51+
'end': '#}'
5152
'endCaptures':
5253
'0':
5354
'name': 'punctuation.definition.comment.end.twig'
5455
'name': 'comment.block.twig'
5556

5657
'twig-variable-tags':
57-
'begin': '\\{\\{-?'
58+
'begin': '{(?:{|(?<={#))'
5859
'beginCaptures':
5960
'0':
6061
'name': 'punctuation.section.tag.twig'
61-
'end': '-?\\}\\}'
62+
'end': '}(?:}|(?=#}))'
6263
'endCaptures':
6364
'0':
6465
'name': 'punctuation.section.tag.twig'
@@ -109,11 +110,11 @@
109110
]
110111

111112
'twig-expression-tags':
112-
'begin': '\\{\\%-?'
113+
'begin': '(?:{|(?<={#))%'
113114
'beginCaptures':
114115
'0':
115116
'name': 'punctuation.section.tag.twig'
116-
'end': '-?\\%\\}'
117+
'end': '%(?:}|(?=#}))'
117118
'endCaptures':
118119
'0':
119120
'name': 'punctuation.section.tag.twig'

grammars/yaml (twig).cson

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,24 +28,25 @@
2828
}
2929
]
3030

31+
3132
'repository':
3233
'twig-comment-tags':
33-
'begin': '\\{#-?'
34+
'begin': '{#'
3435
'beginCaptures':
3536
'0':
3637
'name': 'punctuation.definition.comment.begin.twig'
37-
'end': '-?#\\}'
38+
'end': '#}'
3839
'endCaptures':
3940
'0':
4041
'name': 'punctuation.definition.comment.end.twig'
4142
'name': 'comment.block.twig'
4243

4344
'twig-variable-tags':
44-
'begin': '\\{\\{-?'
45+
'begin': '{(?:{|(?<={#))'
4546
'beginCaptures':
4647
'0':
4748
'name': 'punctuation.section.tag.twig'
48-
'end': '-?\\}\\}'
49+
'end': '}(?:}|(?=#}))'
4950
'endCaptures':
5051
'0':
5152
'name': 'punctuation.section.tag.twig'
@@ -96,11 +97,11 @@
9697
]
9798

9899
'twig-expression-tags':
99-
'begin': '\\{\\%-?'
100+
'begin': '(?:{|(?<={#))%'
100101
'beginCaptures':
101102
'0':
102103
'name': 'punctuation.section.tag.twig'
103-
'end': '-?\\%\\}'
104+
'end': '%(?:}|(?=#}))'
104105
'endCaptures':
105106
'0':
106107
'name': 'punctuation.section.tag.twig'

0 commit comments

Comments
 (0)