Skip to content

Commit

Permalink
bump gapstylevs version to 1.2.0
Browse files Browse the repository at this point in the history
- Enhance `.md`, `.yaml`, `.toml`, '.xml'
- Add Protobuf support
  • Loading branch information
gaplo917 committed Apr 2, 2020
1 parent 7576363 commit f036ee8
Show file tree
Hide file tree
Showing 4 changed files with 67 additions and 14 deletions.
5 changes: 5 additions & 0 deletions vscode/CHANGELOG.md
Expand Up @@ -2,6 +2,11 @@

All notable changes to the "gapstylevs" extension will be documented in this file.

## [1.2.0] - 2020-04-03

- Enhance `.md`, `.yaml`, `.toml`, '.xml'
- Add Protobuf support

## [1.1.0] - 2020-04-03

- Enhance `.js`, `.ts`, `.tsx`, `.jsx`
Expand Down
2 changes: 1 addition & 1 deletion vscode/package.json
Expand Up @@ -2,7 +2,7 @@
"name": "gapstylevs",
"displayName": "GapStyle VS",
"description": "A productivity-oriented dark theme for VSCode, IntelliJ, XCode",
"version": "1.1.0",
"version": "1.2.0",
"publisher": "gaplo917",
"repository": {
"type": "git",
Expand Down
48 changes: 35 additions & 13 deletions vscode/src/gapstyle.yml
Expand Up @@ -34,7 +34,6 @@ variables:
- &MACRO '#328F54'
- &RELAX_MD_KEYWORD '#F96B9D'
- &RELAX_MD_STRING '#E6DB85'
- &RELAX_MD_INLINE_CODE '#CF8823'
colors:
# From my faviourite One Dark Pro Theme
activityBar.background: "#282c34"
Expand Down Expand Up @@ -219,6 +218,7 @@ tokenColors:
- punctuation.definition.string.end.markdown
- constant.other.reference.link.markdown
- punctuation.definition.string.markdown
- entity.name.section.markdown
settings:
foreground: *RELAX_MD_KEYWORD
fontStyle: regular
Expand All @@ -229,8 +229,10 @@ tokenColors:
- markup.raw.restructuredtext
- punctuation.definition.raw.markdown
- markup.fenced_code.block.markdown punctuation.definition.markdown
- fenced_code.block.language.markdown
- markup.fenced_code.block.markdown
settings:
foreground: *RELAX_MD_INLINE_CODE
foreground: *COMMENT

- name: Links (prose)
scope:
Expand Down Expand Up @@ -657,8 +659,8 @@ tokenColors:
- variable.other.key.toml
- entity.name.tag.toml
settings:
foreground: *MEMBER_VAR
fontStyle: regular
foreground: *KEYWORD
fontStyle: bold

- name: Dates / timestamps (serializable languages)
scope:
Expand All @@ -667,28 +669,32 @@ tokenColors:
settings:
foreground: *PREDEFINED

- name: YAML aliases
- name: YAML Anchor
scope:
- variable.other.alias.yaml
- punctuation.definition.anchor.yaml
- entity.name.type.anchor.yaml
settings:
fontStyle: italic
foreground: *LOCAL_VAR
foreground: *FUNCTION_PARAM

- name: TOML Table
- name: YAML Aliases
scope:
- entity.other.attribute-name.table.toml
- variable.other.alias.yaml
- punctuation.definition.alias.yaml
settings:
foreground: *FUNCTION
fontStyle: italic
foreground: *MEMBER_VAR

- name: TOML Array
- name: TOML Table / Array
scope:
- entity.other.attribute-name.table.toml
- entity.other.attribute-name.table.array.toml
settings:
foreground: *INTERFACE
foreground: *PREDEFINED

- name: Config Default
scope:
- source.yaml string.unquoted
- text.html.markdown string.unquoted
settings:
foreground: *DEFAULT

Expand Down Expand Up @@ -990,6 +996,13 @@ tokenColors:
settings:
foreground: *DEFAULT

- name: XML Entity
scope:
- constant.character.entity.xml
- punctuation.definition.constant.xml
settings:
foreground: *PREDEFINED

# =============================================================================
# JSON
# =============================================================================
Expand Down Expand Up @@ -1615,3 +1628,12 @@ tokenColors:
- meta.function.parameter.typehinted.php storage.type.php
settings:
foreground: *TYPE_PARAM
# =============================================================================
# Protobuf
# =============================================================================
- name: Protobuf Keyword
scope:
- constant.language.proto
settings:
foreground: *KEYWORD
fontStyle: bold
26 changes: 26 additions & 0 deletions vscode/test/sample.proto
@@ -0,0 +1,26 @@
syntax = "proto3";

package tutorial;

message Person {
string name = 1;
int32 id = 2;
string email = 3;

enum PhoneType {
MOBILE = 0;
HOME = 1;
WORK = 2;
}

message PhoneNumber {
string number = 1;
PhoneType type = 2;
}

repeated PhoneNumber phones = 4;
}

message AddressBook {
repeated Person people = 1;
}

0 comments on commit f036ee8

Please sign in to comment.