Skip to content

Commit dfd68cc

Browse files
committed
enhance basic syntax highligting if language don't support semantic highlighting
1 parent 5552652 commit dfd68cc

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

vscode/src/gapstyle.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -775,11 +775,9 @@ tokenColors:
775775

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

784782
- name: Destructuring / aliasing reference name (LHS)
785783
scope:
@@ -1850,6 +1848,7 @@ tokenColors:
18501848
scope:
18511849
- variable.other.php
18521850
- variable.other.class.php
1851+
- variable punctuation.definition.variable.php # Fixes php $ sign and variables
18531852
settings:
18541853
foreground: *LOCAL_VAR
18551854

@@ -2025,6 +2024,12 @@ tokenColors:
20252024
# =============================================================================
20262025
# Perl
20272026
# =============================================================================
2027+
- name: Perl Constant Key
2028+
scope:
2029+
- constant.other.key.perl # Perl edge case
2030+
settings:
2031+
foreground: *LOCAL_VAR
2032+
20282033
- name: Perl Bareword
20292034
scope:
20302035
- constant.other.bareword.perl

0 commit comments

Comments
 (0)