Skip to content

Commit

Permalink
VS Theme generation for TypeScript
Browse files Browse the repository at this point in the history
  • Loading branch information
sheetalkamat committed Sep 20, 2016
1 parent c6111da commit 489c3ad
Show file tree
Hide file tree
Showing 3 changed files with 229 additions and 178 deletions.
53 changes: 53 additions & 0 deletions TypeScript.YAML-tmTheme
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# VS theme settings for TypeScript

---
name: TypeScript
uuid: ef98eb90-bf9b-11e4-bb52-0800200c9a66

settings:
- scope: storage.modifier, storage.type, keyword.control, keyword.other.ts, keyword.generator.asterisk, punctuation.definition.template-expression
settings: { vsclassificationtype: keyword }
- scope: keyword.operator.new.ts, keyword.operator.delete.ts, keyword.operator.in.ts, keyword.operator.of.ts, keyword.operator.instanceof.ts, keyword.operator.typeof.ts, keyword.operator.void.ts, keyword.control.as.ts, keyword.operator.is.ts
settings: { vsclassificationtype: keyword }
- scope: support.type, constant.language, variable.language
settings: { vsclassificationtype: keyword }

- scope: string, punctuation.definition.string, constant.character
settings: { vsclassificationtype: string }
- scope: keyword.control.anchor.regexp, keyword.other.back-reference.regexp, keyword.operator.quantifier.regexp, keyword.operator.or.regexp, keyword.operator.negation.regexp, punctuation.definition.group.regexp, punctuation.definition.group.assertion.regexp, meta.assertion.look-ahead.regexp, meta.assertion.negative-look-ahead.regexp, punctuation.definition.group.capture.regexp, punctuation.definition.character-class.regexp, constant.other.character-class.range.regexp
settings: { vsclassificationtype: string }

- scope: constant.numeric, meta.delimiter.decimal.period.ts, constant.language.nan.ts, constant.language.infinity.ts
settings: { vsclassificationtype: number }

- scope: keyword.operator, storage.type.function.arrow.ts
settings: { vsclassificationtype: operator }

- scope: meta.brace.angle.ts, meta.brace.round.ts, meta.brace.square.ts, punctuation, constant.language.import-export-all.ts, meta.delimiter.object.comma.ts
settings: { vsclassificationtype: punctuation }

- scope: comment, comment.block.ts, comment.line.double-slash.ts, punctuation.definition.comment.ts
settings: { vsclassificationtype: comment }
- scope: comment.block.documentation.ts, other.meta.jsdoc, other.description.jsdoc
settings: { vsclassificationtype: comment }
- scope: entity.name.type.instance.jsdoc, variable.other.jsdoc
settings: { vsclassificationtype: identifier }
- scope: storage.type.class.jsdoc
settings: { vsclassificationtype: xml doc comment - name }

- scope: entity.name.class.ts
settings: { vsclassificationtype: class name }

- scope: entity.name.type.module.ts
settings: { vsclassificationtype: module name }

- scope: entity.name.type.enum.ts
settings: { vsclassificationtype: enum name }

- scope: entity.name.function, entity.name.type, meta.template.expression.ts, variable, entity.other.inherited-class.ts
settings: { vsclassificationtype: identifier }

- scope: constant.language.undefined.ts
settings: { vsclassificationtype: identifier }

...
342 changes: 166 additions & 176 deletions TypeScript.tmTheme
Original file line number Diff line number Diff line change
@@ -1,176 +1,166 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>name</key>
<string>TypeScript</string>
<key>settings</key>
<array>
<dict>
<key>scope</key>
<string>storage.modifier, storage.type, keyword.control, keyword.other.ts, keyword.generator.asterisk, punctuation.definition.template-expression</string>
<key>settings</key>
<dict>
<key>vsclassificationtype</key>
<string>keyword</string>
</dict>
</dict>
<dict>
<key>scope</key>
<string>keyword.operator.new.ts, keyword.operator.delete.ts, keyword.operator.in.ts, keyword.operator.of.ts, keyword.operator.instanceof.ts, keyword.operator.typeof.ts, keyword.operator.void.ts, keyword.control.as.ts, keyword.operator.is.ts</string>
<key>settings</key>
<dict>
<key>vsclassificationtype</key>
<string>keyword</string>
</dict>
</dict>
<dict>
<key>scope</key>
<string>support.type, constant.language, variable.language</string>
<key>settings</key>
<dict>
<key>vsclassificationtype</key>
<string>keyword</string>
</dict>
</dict>

<dict>
<key>scope</key>
<string>string, punctuation.definition.string, constant.character</string>
<key>settings</key>
<dict>
<key>vsclassificationtype</key>
<string>string</string>
</dict>
</dict>
<dict>
<key>scope</key>
<string>keyword.control.anchor.regexp, keyword.other.back-reference.regexp, keyword.operator.quantifier.regexp, keyword.operator.or.regexp, keyword.operator.negation.regexp, punctuation.definition.group.regexp, punctuation.definition.group.assertion.regexp, meta.assertion.look-ahead.regexp, meta.assertion.negative-look-ahead.regexp, punctuation.definition.group.capture.regexp, punctuation.definition.character-class.regexp, constant.other.character-class.range.regexp</string>
<key>settings</key>
<dict>
<key>vsclassificationtype</key>
<string>string</string>
</dict>
</dict>

<dict>
<key>scope</key>
<string>constant.numeric, meta.delimiter.decimal.period.ts, constant.language.nan.ts, constant.language.infinity.ts</string>
<key>settings</key>
<dict>
<key>vsclassificationtype</key>
<string>number</string>
</dict>
</dict>

<dict>
<key>scope</key>
<string>keyword.operator, storage.type.function.arrow.ts</string>
<key>settings</key>
<dict>
<key>vsclassificationtype</key>
<string>operator</string>
</dict>
</dict>

<dict>
<key>scope</key>
<string>meta.brace.angle.ts, meta.brace.round.ts, meta.brace.square.ts, punctuation, constant.language.import-export-all.ts, meta.delimiter.object.comma.ts</string>
<key>settings</key>
<dict>
<key>vsclassificationtype</key>
<string>punctuation</string>
</dict>
</dict>

<dict>
<key>scope</key>
<string>comment, comment.block.ts, comment.line.double-slash.ts, punctuation.definition.comment.ts</string>
<key>settings</key>
<dict>
<key>vsclassificationtype</key>
<string>comment</string>
</dict>
</dict>
<dict>
<key>scope</key>
<string>comment.block.documentation.ts, other.meta.jsdoc, other.description.jsdoc</string>
<key>settings</key>
<dict>
<key>vsclassificationtype</key>
<string>comment</string>
</dict>
</dict>
<dict>
<key>scope</key>
<string>entity.name.type.instance.jsdoc, variable.other.jsdoc</string>
<key>settings</key>
<dict>
<key>vsclassificationtype</key>
<string>identifier</string>
</dict>
</dict>
<dict>
<key>scope</key>
<string>storage.type.class.jsdoc</string>
<key>settings</key>
<dict>
<key>vsclassificationtype</key>
<string>xml doc comment - name</string>
</dict>
</dict>

<dict>
<key>scope</key>
<string>entity.name.class.ts</string>
<key>settings</key>
<dict>
<key>vsclassificationtype</key>
<string>class name</string>
</dict>
</dict>

<dict>
<key>scope</key>
<string>entity.name.type.module.ts</string>
<key>settings</key>
<dict>
<key>vsclassificationtype</key>
<string>module name</string>
</dict>
</dict>

<dict>
<key>scope</key>
<string>entity.name.type.enum.ts</string>
<key>settings</key>
<dict>
<key>vsclassificationtype</key>
<string>enum name</string>
</dict>
</dict>

<dict>
<key>scope</key>
<string>entity.name.function, entity.name.type, meta.template.expression.ts, variable, entity.other.inherited-class.ts</string>
<key>settings</key>
<dict>
<key>vsclassificationtype</key>
<string>identifier</string>
</dict>
</dict>
<dict>
<key>scope</key>
<string>constant.language.undefined.ts</string>
<key>settings</key>
<dict>
<key>vsclassificationtype</key>
<string>identifier</string>
</dict>
</dict>

</array>
<key>uuid</key>
<string>ef98eb90-bf9b-11e4-bb52-0800200c9a66</string>
</dict>
</plist>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>name</key>
<string>TypeScript</string>
<key>uuid</key>
<string>ef98eb90-bf9b-11e4-bb52-0800200c9a66</string>
<key>settings</key>
<array>
<dict>
<key>scope</key>
<string>storage.modifier, storage.type, keyword.control, keyword.other.ts, keyword.generator.asterisk, punctuation.definition.template-expression</string>
<key>settings</key>
<dict>
<key>vsclassificationtype</key>
<string>keyword</string>
</dict>
</dict>
<dict>
<key>scope</key>
<string>keyword.operator.new.ts, keyword.operator.delete.ts, keyword.operator.in.ts, keyword.operator.of.ts, keyword.operator.instanceof.ts, keyword.operator.typeof.ts, keyword.operator.void.ts, keyword.control.as.ts, keyword.operator.is.ts</string>
<key>settings</key>
<dict>
<key>vsclassificationtype</key>
<string>keyword</string>
</dict>
</dict>
<dict>
<key>scope</key>
<string>support.type, constant.language, variable.language</string>
<key>settings</key>
<dict>
<key>vsclassificationtype</key>
<string>keyword</string>
</dict>
</dict>
<dict>
<key>scope</key>
<string>string, punctuation.definition.string, constant.character</string>
<key>settings</key>
<dict>
<key>vsclassificationtype</key>
<string>string</string>
</dict>
</dict>
<dict>
<key>scope</key>
<string>keyword.control.anchor.regexp, keyword.other.back-reference.regexp, keyword.operator.quantifier.regexp, keyword.operator.or.regexp, keyword.operator.negation.regexp, punctuation.definition.group.regexp, punctuation.definition.group.assertion.regexp, meta.assertion.look-ahead.regexp, meta.assertion.negative-look-ahead.regexp, punctuation.definition.group.capture.regexp, punctuation.definition.character-class.regexp, constant.other.character-class.range.regexp</string>
<key>settings</key>
<dict>
<key>vsclassificationtype</key>
<string>string</string>
</dict>
</dict>
<dict>
<key>scope</key>
<string>constant.numeric, meta.delimiter.decimal.period.ts, constant.language.nan.ts, constant.language.infinity.ts</string>
<key>settings</key>
<dict>
<key>vsclassificationtype</key>
<string>number</string>
</dict>
</dict>
<dict>
<key>scope</key>
<string>keyword.operator, storage.type.function.arrow.ts</string>
<key>settings</key>
<dict>
<key>vsclassificationtype</key>
<string>operator</string>
</dict>
</dict>
<dict>
<key>scope</key>
<string>meta.brace.angle.ts, meta.brace.round.ts, meta.brace.square.ts, punctuation, constant.language.import-export-all.ts, meta.delimiter.object.comma.ts</string>
<key>settings</key>
<dict>
<key>vsclassificationtype</key>
<string>punctuation</string>
</dict>
</dict>
<dict>
<key>scope</key>
<string>comment, comment.block.ts, comment.line.double-slash.ts, punctuation.definition.comment.ts</string>
<key>settings</key>
<dict>
<key>vsclassificationtype</key>
<string>comment</string>
</dict>
</dict>
<dict>
<key>scope</key>
<string>comment.block.documentation.ts, other.meta.jsdoc, other.description.jsdoc</string>
<key>settings</key>
<dict>
<key>vsclassificationtype</key>
<string>comment</string>
</dict>
</dict>
<dict>
<key>scope</key>
<string>entity.name.type.instance.jsdoc, variable.other.jsdoc</string>
<key>settings</key>
<dict>
<key>vsclassificationtype</key>
<string>identifier</string>
</dict>
</dict>
<dict>
<key>scope</key>
<string>storage.type.class.jsdoc</string>
<key>settings</key>
<dict>
<key>vsclassificationtype</key>
<string>xml doc comment - name</string>
</dict>
</dict>
<dict>
<key>scope</key>
<string>entity.name.class.ts</string>
<key>settings</key>
<dict>
<key>vsclassificationtype</key>
<string>class name</string>
</dict>
</dict>
<dict>
<key>scope</key>
<string>entity.name.type.module.ts</string>
<key>settings</key>
<dict>
<key>vsclassificationtype</key>
<string>module name</string>
</dict>
</dict>
<dict>
<key>scope</key>
<string>entity.name.type.enum.ts</string>
<key>settings</key>
<dict>
<key>vsclassificationtype</key>
<string>enum name</string>
</dict>
</dict>
<dict>
<key>scope</key>
<string>entity.name.function, entity.name.type, meta.template.expression.ts, variable, entity.other.inherited-class.ts</string>
<key>settings</key>
<dict>
<key>vsclassificationtype</key>
<string>identifier</string>
</dict>
</dict>
<dict>
<key>scope</key>
<string>constant.language.undefined.ts</string>
<key>settings</key>
<dict>
<key>vsclassificationtype</key>
<string>identifier</string>
</dict>
</dict>
</array>
</dict>
</plist>
Loading

0 comments on commit 489c3ad

Please sign in to comment.