Skip to content

Commit

Permalink
enhance basic syntax highligting if language don't support semantic h…
Browse files Browse the repository at this point in the history
…ighlighting
  • Loading branch information
gaplo917 committed Apr 25, 2020
1 parent 5552652 commit dfd68cc
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions vscode/src/gapstyle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -775,11 +775,9 @@ tokenColors:

- name: Variables and object properties
scope:
- variable.other.object
- constant.other.key.perl # Perl edge case
- variable punctuation.definition.variable.php # Fixes php $ sign and variables
- variable.other.object
settings:
foreground: *LOCAL_VAR
foreground: *DEFAULT # Using default color is good for language that not support semantic highlighting

- name: Destructuring / aliasing reference name (LHS)
scope:
Expand Down Expand Up @@ -1850,6 +1848,7 @@ tokenColors:
scope:
- variable.other.php
- variable.other.class.php
- variable punctuation.definition.variable.php # Fixes php $ sign and variables
settings:
foreground: *LOCAL_VAR

Expand Down Expand Up @@ -2025,6 +2024,12 @@ tokenColors:
# =============================================================================
# Perl
# =============================================================================
- name: Perl Constant Key
scope:
- constant.other.key.perl # Perl edge case
settings:
foreground: *LOCAL_VAR

- name: Perl Bareword
scope:
- constant.other.bareword.perl
Expand Down

0 comments on commit dfd68cc

Please sign in to comment.