Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve compatibility with built in typescript syntax #20

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
3 changes: 1 addition & 2 deletions estilo/palettes/shades_of_purple.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ strings: "#A5FF90"
stringsLite: "#d2ffc7"
jsonString: "#92FC79"
darkerStrings: "#73b264"
templates: "#75e44c"
templates: "#3AD900"
definitions: "#FB94FF"
invalid: "#EC3A37"
diffAdded: "#00FF00"
Expand All @@ -31,4 +31,3 @@ currentSearch: "#ff7300"
objectKeys: "#80FFBB"
# This should be similar to `comment`
selectionBackground: "#7d44b2"
cssEntity: "#3AD900"
14 changes: 7 additions & 7 deletions estilo/syntax/base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,23 +52,23 @@ Character: "" # Constant
Boolean: "" # Constant
Number: "" # Constant
Float: "" # Constant
Identifier: "keywords"
Function: "keywords" # Identifier
Statement: ""
Conditional: "keywords" # Statement
Identifier: "white"
Function: "contrast" # Identifier
Statement: "keywords"
Conditional: "" # Statement
Repeat: "" # Statement
Label: "" # Statement
Operator: "keywords ." # Statement
Keyword: "" # Statement
Exception: "" # Statement
PreProc: ""
Include: "" # PreProc
Include: "keywords" # PreProc
Define: "" # PreProc
Macro: "" # PreProc
PreCondit: "" # PreProc
Type: "objectKeys ."
Type: "contrast"
StorageClass: "keywords ." # Type
Structure: "contrastLite" # Type
Structure: "keywords" # Type
Typedef: "" # Type
Special: "other"
SpecialChar: "" # Special
Expand Down
45 changes: 34 additions & 11 deletions estilo/syntax/typescript.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,42 @@
# Typescript: amadeus/vim-typescript
tsExportDefault: 'contrast'
tsFuncArgs: 'other - i'
typescriptParameters: 'other - i'
tsThis: 'keywords - i'

# leafgarland/typescript-vim
typescriptParameters: 'other - i'
typescriptStorageClass: 'contrast'

# Builtin styles
typescriptIdentifier: 'definitions' # Structure
typescriptExport: 'keywords - i'
typescriptAmbientDeclaration: 'keywords - i'
typescriptTemplate: 'templates' # String
typescriptPredefinedType: 'objectKeys' # Type
typescriptPrototype: 'objectKeys' # Type

typescriptVariable: '@Keyword'
typescriptOperator: '@Keyword'
typescriptImport: '@Keyword'
typescriptTry: '@Exception'
typescriptExceptions: '@Exception'

typescriptImportType: '@Keyword'
typescriptExportType: '@Keyword'
typescriptModule: '@Keyword'
typescriptInterfaceName: '@Type' # Function
typescriptAliasDeclaration: '@Type' # Identifier
typescriptTypeReference: '@Type' # Identifier
typescriptClassName: '@Type' # Identifier
typescriptClassHeritage: '@Type' # Identifier
typescriptCall: 'other' # PreProc
typescriptArrowFuncArg: 'other' # PreProc
typescriptObjectLabel: 'contrastLite' # Label
typescriptTupleLable: 'contrastLite' # Label

# tsx
tsxAttrib: 'contrast - i'
tsxComment: 'comment - i'
typescriptLineComment: 'comment - i'
tsxTagName: 'other'
tsxTag: 'white'
tsxCloseTag: 'white'
tsxCloseString: 'other'
typescriptReserved: ''
typescriptStorageClass: 'contrast'
typescriptIdentifier: 'other'
typescriptInterfaceName: 'contrast'
typescriptAliasDeclaration: 'contrast'
typescriptInterfaceKeyword: 'contrastLiteII - i'
typescriptAliasKeyword: 'contrastLiteII - i'
typescriptExport: 'keywords - i'