Skip to content

Commit aab967f

Browse files
committed
enhance PHP & CSS colouring
1 parent 51bd7c2 commit aab967f

File tree

1 file changed

+37
-17
lines changed

1 file changed

+37
-17
lines changed

vscode/src/gapstyle.yml

Lines changed: 37 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,6 @@ tokenColors:
348348
- meta.function-call
349349
- meta.function-call.generic
350350
- meta.function-call.object
351-
- meta.function-call.php
352351
- meta.function-call.static
353352
- meta.method.groovy
354353
- support.function.any-method.lua
@@ -416,14 +415,6 @@ tokenColors:
416415
settings:
417416
foreground: *KEYWORD
418417

419-
- name: Language specific Keywords
420-
scope:
421-
- punctuation.section.embedded.begin.php
422-
- punctuation.section.embedded.end.php
423-
settings:
424-
fontStyle: bold
425-
foreground: *KEYWORD
426-
427418

428419
# =============================================================================
429420
# Language Built-ins
@@ -581,7 +572,6 @@ tokenColors:
581572
- storage.type.cs
582573
- storage.type.groovy
583574
- storage.type.objc
584-
- storage.type.php
585575
- storage.type.haskell
586576
- storage.type.ocaml
587577
settings:
@@ -1017,6 +1007,7 @@ tokenColors:
10171007
- entity.other.attribute-name.id.css
10181008
- entity.other.attribute-name.pseudo-element.css
10191009
- entity.name.tag.css
1010+
- entity.name.tag.custom.css
10201011
- constant.other.unicode-range.css
10211012
- punctuation.definition.constant.css
10221013
- support.constant.language-range.css
@@ -1626,32 +1617,61 @@ tokenColors:
16261617
# =============================================================================
16271618
# PHP
16281619
# =============================================================================
1620+
1621+
- name: PHP Keywords
1622+
scope:
1623+
- punctuation.section.embedded.begin.php
1624+
- punctuation.section.embedded.end.php
1625+
- punctuation.section.embedded.end.php source.php
1626+
- variable.language.this.php
1627+
- constant.language.php
1628+
- storage.type.php
1629+
settings:
1630+
foreground: *KEYWORD
1631+
fontStyle: bold
1632+
16291633
- name: PHP Class Fields
16301634
scope:
16311635
- meta.class.body.php variable.other.php
16321636
- meta.class.body.php variable.other.php punctuation.definition.variable.php
16331637
settings:
16341638
foreground: *MEMBER_VAR
16351639

1636-
- name: PHP Function parameter
1640+
- name: PHP Magic Function
16371641
scope:
1638-
- meta.function.parameters.php variable.other.php
1642+
- support.function.magic.php
16391643
settings:
1640-
foreground: *FUNCTION_PARAM
1644+
foreground: *FUNCTION
1645+
fontStyle: bold italic
16411646

1642-
- name: PHP Keyword
1647+
- name: PHP Function parameter
16431648
scope:
1644-
- variable.language.this.php
1649+
- meta.function.parameters.php variable.other.php
16451650
settings:
1646-
foreground: *KEYWORD
1647-
fontStyle: bold
1651+
foreground: *FUNCTION_PARAM
16481652

16491653
- name: PHP Typehints
16501654
scope:
16511655
- meta.function.parameter.typehinted.php
16521656
- meta.function.parameter.typehinted.php storage.type.php
16531657
settings:
16541658
foreground: *TYPE_PARAM
1659+
1660+
- name: PHP Variable
1661+
scope:
1662+
- variable.other.php
1663+
- variable.other.class.php
1664+
settings:
1665+
foreground: *LOCAL_VAR
1666+
1667+
- name: PHP Global
1668+
scope:
1669+
- variable.other.global.php
1670+
- variable.other.global.php punctuation.definition.variable.php
1671+
settings:
1672+
foreground: *PREDEFINED
1673+
fontStyle: italic
1674+
16551675
# =============================================================================
16561676
# Protobuf
16571677
# =============================================================================

0 commit comments

Comments
 (0)