Skip to content

Commit c617bf4

Browse files
committed
Merge pull request #798 from jbarket/master
Angular2 Decorator Template Highlighting
2 parents 07f2200 + 3fa9199 commit c617bf4

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

grammars/typescript.cson

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,10 @@
88
'name': 'TypeScript'
99

1010
'patterns': [
11-
1211
####
1312
# Rules that no one should change
1413
# These are used by code to provide fancy completions
1514
####
16-
1715
{
1816
'comment': 'Match debugger statement'
1917
'match': '\\s*(debugger)[\\s;]+'
@@ -917,7 +915,7 @@
917915
}
918916
]
919917

920-
'functionargumentreturntype':
918+
'functionargumentreturntype':
921919
'begin': '(?=\\()'
922920
'end': '(?<!\\))(?!\\G)'
923921
'patterns': [
@@ -1047,7 +1045,7 @@
10471045
'name': 'punctuation.definition.parameters.end.js'
10481046
'patterns': [
10491047
{
1050-
'include': '$base'
1048+
'include': '#angulartemplate'
10511049
}
10521050
]
10531051

@@ -1380,5 +1378,12 @@
13801378
]
13811379

13821380
'comma':
1383-
'match': ','
1384-
'name': 'meta.delimiter.object.comma.js'
1381+
'match': ','
1382+
'name': 'meta.delimiter.object.comma.js'
1383+
1384+
'angulartemplate':
1385+
'begin': '\\b(template:\\s*`)'
1386+
'end': '(`)'
1387+
'patterns': [
1388+
{ 'include': 'text.html.basic' }
1389+
]

0 commit comments

Comments
 (0)