Skip to content

Commit c877188

Browse files
committed
Generate TypeScriptReact theme
1 parent 489c3ad commit c877188

File tree

3 files changed

+280
-246
lines changed

3 files changed

+280
-246
lines changed

TypeScriptReact.YAML-tmTheme

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# VS theme settings for TypeScriptReact
2+
# These only contains additions to existing TypeScript theme
3+
4+
---
5+
name: TypeScriptReact
6+
uuid: ef98eb90-bf9b-11e4-bb52-0800200c9a66
7+
8+
settings:
9+
# Additions
10+
- scope: entity.name.tag.tsx
11+
settings: { vsclassificationtype: xml literal - name }
12+
13+
- scope: entity.other.attribute-name.tsx
14+
settings: { vsclassificationtype: xml literal - attribute name }
15+
16+
# scope: meta.tag.tsx string.quoted, meta.tag.tsx string.quoted punctuation.definition.string, meta.tag.tsx string.quoted constant.character.entity.tsx, meta.tag.tsx string.quoted constant.character.entity.tsx punctuation.definition.entity.tsx
17+
# settings: { vsclassificationtype: xml literal - attribute value }
18+
19+
- scope: string.jsxAttributeValue, punctuation.definition.string.jsxAttributeValue, constant.character.entity.jsxAttributeValue.tsx, punctuation.definition.entity.jsxAttributeValue.tsx, invalid.illegal.bad-ampersand.jsxAttributeValue.tsx
20+
settings: { vsclassificationtype: xml literal - attribute value }
21+
22+
- scope: meta.jsx.children.tsx, constant.character.entity.tsx, punctuation.definition.entity.tsx, invalid.illegal.bad-ampersand.tsx
23+
settings: { vsclassificationtype: xml literal - text }
24+
25+
- scope: invalid.illegal.attribute.tsx, meta.brace.curly.tsx
26+
settings: { vsclassificationtype: identifier }
27+
28+
...

0 commit comments

Comments
 (0)