Skip to content

Commit ec6b9ca

Browse files
committed
Merge remote-tracking branch 'origin/master' into issue_63
2 parents 162238e + a5d269d commit ec6b9ca

File tree

7 files changed

+22
-11
lines changed

7 files changed

+22
-11
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# TypeScript-TmLanguage
2+
[![Build status](https://ci.appveyor.com/api/projects/status/i7fp97q9nc5uw5kf?svg=true)](https://ci.appveyor.com/project/zhengbli/typescript-tmlanguage)
23

34
This repository contains TmLanguage files that are consumed by TypeScript editors and plugins such as [Visual Studio Code](https://github.com/Microsoft/vscode), [The TypeScript Sublime Plugin](https://github.com/Microsoft/TypeScript-Sublime-Plugin), [Atom TypeScript](https://github.com/TypeStrong/atom-typescript), and possibly others.
45

@@ -14,4 +15,4 @@ Test are run from within the ```tests``` folder
1415
cd tests
1516
npm install # Installs dependencies required for testing
1617
npm test # Compiles & runs tests
17-
```
18+
```

TypeScript.YAML-tmLanguage

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@ repository:
490490

491491
expression-operator:
492492
name: keyword.operator.ts
493-
match: =>|\b(delete|export|import|from|in|instanceof|module|namespace|new|typeof|void|as)\b
493+
match: =>|\b(delete|export|import|from|in|instanceof|new|typeof|void|as)\b
494494

495495
arithmetic-operator:
496496
name: keyword.operator.arithmetic.ts
@@ -510,7 +510,7 @@ repository:
510510

511511
storage-keyword:
512512
name: storage.type.ts
513-
match: \b(number|boolean|string|any|var|let|function|const)\b
513+
match: \b(number|boolean|string|any|var|let|function|const|module|namespace)\b
514514

515515
paren-expression:
516516
begin: \(

TypeScript.tmLanguage

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@
408408
<key>expression-operator</key>
409409
<dict>
410410
<key>match</key>
411-
<string>=&gt;|\b(delete|export|import|from|in|instanceof|module|namespace|new|typeof|void|as)\b</string>
411+
<string>=&gt;|\b(delete|export|import|from|in|instanceof|new|typeof|void|as)\b</string>
412412
<key>name</key>
413413
<string>keyword.operator.ts</string>
414414
</dict>
@@ -1241,7 +1241,7 @@
12411241
<key>storage-keyword</key>
12421242
<dict>
12431243
<key>match</key>
1244-
<string>\b(number|boolean|string|any|var|let|function|const)\b</string>
1244+
<string>\b(number|boolean|string|any|var|let|function|const|module|namespace)\b</string>
12451245
<key>name</key>
12461246
<string>storage.type.ts</string>
12471247
</dict>

TypeScriptReact.YAML-tmLanguage

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ repository:
328328

329329
await-modifier:
330330
name: storage.modifier.tsx
331-
match: 'await'
331+
match: '\bawait\b'
332332

333333
type-operator:
334334
name: keyword.operator.type.tsx
@@ -478,7 +478,7 @@ repository:
478478

479479
expression-operator:
480480
name: keyword.operator.tsx
481-
match: =>|\b(delete|export|import|from|in|instanceof|module|namespace|new|typeof|void|as)\b
481+
match: =>|\b(delete|export|import|from|in|instanceof|new|typeof|void|as)\b
482482

483483
arithmetic-operator:
484484
name: keyword.operator.arithmetic.tsx
@@ -498,7 +498,7 @@ repository:
498498

499499
storage-keyword:
500500
name: storage.type.tsx
501-
match: \b(number|boolean|string|any|var|let|function|const)\b
501+
match: \b(number|boolean|string|any|var|let|function|const|module|namespace)\b
502502

503503
paren-expression:
504504
begin: \(

TypeScriptReact.tmLanguage

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
<key>await-modifier</key>
7474
<dict>
7575
<key>match</key>
76-
<string>await</string>
76+
<string>\bawait\b</string>
7777
<key>name</key>
7878
<string>storage.modifier.tsx</string>
7979
</dict>
@@ -376,7 +376,7 @@
376376
<key>expression-operator</key>
377377
<dict>
378378
<key>match</key>
379-
<string>=&gt;|\b(delete|export|import|from|in|instanceof|module|namespace|new|typeof|void|as)\b</string>
379+
<string>=&gt;|\b(delete|export|import|from|in|instanceof|new|typeof|void|as)\b</string>
380380
<key>name</key>
381381
<string>keyword.operator.tsx</string>
382382
</dict>
@@ -1607,7 +1607,7 @@
16071607
<key>storage-keyword</key>
16081608
<dict>
16091609
<key>match</key>
1610-
<string>\b(number|boolean|string|any|var|let|function|const)\b</string>
1610+
<string>\b(number|boolean|string|any|var|let|function|const|module|namespace)\b</string>
16111611
<key>name</key>
16121612
<string>storage.type.tsx</string>
16131613
</dict>
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[1, 1]: source.ts storage.type.ts
2+
[2, 1]: source.ts storage.type.ts
3+
[3, 9]: source.ts storage.type.ts
4+
[4, 9]: source.ts storage.type.ts
5+
[5, 9]: source.ts storage.type.ts

tests/cases/namespaceAndModule.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
^namespace ts { }
2+
^module ts { }
3+
declare ^namespace ts {}
4+
declare ^module ts {}
5+
declare ^module "x" {}

0 commit comments

Comments
 (0)