Skip to content

Commit a601be0

Browse files
committed
Fix problem with missing syntax highlighting in atom 1.0.15+
1 parent c725985 commit a601be0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

grammars/typescript.cson

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -716,7 +716,7 @@
716716
]
717717

718718
'type':
719-
'begin': '(?=)'
719+
'begin': '(?=[\\(\\{\\p{L}\\p{Nl}$_])'
720720
'end': '(?<!\\*\\/)(?<!\\|)(?<!\\s)(?<!\\.)(?!\\G)(?!\\.)(?!\\s*\\|)'
721721
'patterns': [
722722
{
@@ -764,7 +764,7 @@
764764
]
765765

766766
'typeinheritedfrom':
767-
'begin': '(?=)'
767+
'begin': '(?=[\\(\\{\\p{L}\\p{Nl}$_])'
768768
'end': '(?<!\\*\\/)(?<!\\|)(?<!\\.)(?!\\G)(?!\\.)(?!\\|)'
769769
'patterns': [
770770
{

0 commit comments

Comments
 (0)