Skip to content

Commit

Permalink
update 2.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Gael-Lopes-Da-Silva committed Nov 5, 2023
1 parent 029978f commit e8efbe7
Show file tree
Hide file tree
Showing 11 changed files with 1,324 additions and 1,153 deletions.
3 changes: 0 additions & 3 deletions .gitignore

This file was deleted.

5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@

---

### 2.2.1
- Better support for embeded string code like in Php or Typescript
- Better Typescript support
- Little change in Rust

### 2.2.0
- Better Zig support

Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@
</a>
</div>

<!-- > 🗒️ -->
> [!NOTE]
<!-- > [!NOTE] -->
> 🗒️
> Yellowed is a simple material dark theme wich focus his syntax color on the golden yellow. Its syntax is inspired by the [gruber-darker](https://github.com/rexim/gruber-darker-theme) theme for emacs, but changed a bit.
<!-- > -->
> [!IMPORTANT]
<!-- > [!IMPORTANT] -->
>
> If you find any weird syntax highlighting, try disabling semantic highlighting. If it doesn't work then please report it [here](https://github.com/Gael-Lopes-Da-Silva/YellowedVSCode/issues/new/choose). This would help me a lot since I can't cover all the languages.
## 🖼️ Screenshots
Expand Down Expand Up @@ -49,6 +49,6 @@ Yellow - [#ffd900]
White - [#ffffff]
~~~

<!-- > 🗒️ -->
> [!NOTE]
<!-- > [!NOTE] -->
> 🗒️
> You can find my Visual Studio Code configuraton [here](https://github.com/Gael-Lopes-Da-Silva/MyVscodeConfig).
1 change: 1 addition & 0 deletions TODO.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
- [x] add "keyword.other.type.php" to yellow color
- [x] add "support.constant.core.php" to purple bold color
- [x] try to find something like "support.function" or "support.function.php"
- [x] add "meta.embedded.block.php" to white color

# Xml
- [x] add "entity.other.attribute-name.xml" to light gray color
Binary file not shown.
8 changes: 2 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,19 @@
{
"name": "yellowed",
"version": "2.2.0",
"displayName": "Yellowed",
"version": "2.2.1",
"description": "A lemon like theme for vscode.",
"publisher": "gael-lopes-da-silva",
"icon": "resources/icon.png",
"license": "LICENSE.md",
"homepage": "https://raw.githubusercontent.com/Gael-Lopes-Da-Silva/YellowedVSCode/main/README.md",
"markdown": "github",
"engines": {
"vscode": "^1.81.1"
},
"categories": [
"Themes"
],
"maintainers": [
"Gael Lopes Da Silva"
],
"scripts": {
"publish": "vsce publish",
"package": "vsce package -o build"
Expand All @@ -42,9 +40,7 @@
"color": "#ffd900",
"theme": "dark"
},
"homepage": "https://github.com/Gael-Lopes-Da-Silva/YellowedVSCode",
"keywords": [
"amogus",
"yellowed",
"yellow",
"dark",
Expand Down
4 changes: 2 additions & 2 deletions samples/.env
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@ TEST_NUM_HEX=0x1A
# TEST_THREE="foobar" # A comment on a commented row.
TEST_FOUR="test test test" # this is a comment.
TEST_FIVE="comment symbol # inside string" # this is a comment.
TEST_SIX="comment symbol # and quotes \" \' inside quotes" # " this is a comment.
TEST_SIX="comment symbol # and quotes inside quotes" # " this is a comment.

# Escape sequences.
TEST_ESCAPE="escaped characters \n \t \r \" \' \$ or maybe a backslash \\..."
TEST_ESCAPE="escaped characters \n \t \r \$ or maybe a backslash \\..."

# Double Quotes.
TEST_DOUBLE="Lorem {$VAR1} ${VAR2} $VAR3 ipsum dolor sit amet\n\r\t\\"
Expand Down
180 changes: 136 additions & 44 deletions samples/.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,93 @@
<div class="test<?php
/**
* Small Class.
*
* @since 1.0.0
*/
class Small
{
/**
* Name.
*
* @var String
* @since 1.0.0
*/
public static $name;

/**
* Sum.
*
* @param Number $num1 First number.
* @param Number $num2 First number.
* @return Number
* @since 1.0.0
*/
public static function sum($num1, $num2)
{
return $num1 + $num2;
}
}

// SQL for the win.
$get = "SELECT *
FROM blog
WHERE country='$country'
AND who='host'
ORDER BY date DESC";

namespace Hyunk3l\PhpDesignPatterns\Creational\Builder;

use Hyunk3l\PhpDesignPatterns\Creational\Builder\Components\Box;
use Hyunk3l\PhpDesignPatterns\Creational\Builder\Components\Band;
use Hyunk3l\PhpDesignPatterns\Creational\Builder\Components\Movement;
use Hyunk3l\PhpDesignPatterns\Creational\Builder\Components\Hand;

class ClassicWatchBuilder implements WatchBuilderInterface
{
private Watch $watch;

public function createWatch(): WatchBuilderInterface
{
$this->watch = new ClassicWatch();
return $this;
}

public function addBox(): WatchBuilderInterface
{
$this->watch->addComponent("Watch box", new Box());
return $this;
}

public function addHands(): WatchBuilderInterface
{
$this->watch->addComponent("Seconds hand", new Hand());
$this->watch->addComponent("Minutes hand", new Hand());
$this->watch->addComponent("Hours hand", new Hand());
return $this;
}

public function addBands(): WatchBuilderInterface
{
$this->watch->addComponent("Leather upper band", new Band());
$this->watch->addComponent("Leather lower band", new Band());
return $this;
}

public function addMovements(): WatchBuilderInterface
{
$this->watch->addComponent("Principal watch movement", new Movement());
$this->watch->addComponent("Date watch movement", new Movement());
return $this;
}

public function getWatch(): Watch
{
return $this->watch;
}
}

?>"></div>

<?php // phpcs:ignore
/**
* PHP is fun
Expand All @@ -19,10 +109,10 @@
$awais = 'Awais';

// Display the page to admins and subscribers only.
if ( current_user_can( 'administrator' ) || current_user_can( 'subscriber' ) ) {
if (current_user_can('administrator') || current_user_can('subscriber')) {
echo 'HELLO!';
} else {
wp_safe_redirect( 'https://VSCode.pro', 302 );
wp_safe_redirect('https://VSCode.pro', 302);
exit;
}

Expand All @@ -34,7 +124,8 @@
*
* @since 1.0.0
*/
class Small {
class Small
{
/**
* Name.
*
Expand All @@ -51,7 +142,8 @@ class Small {
* @return Number
* @since 1.0.0
*/
public static function sum( $num1, $num2 ) {
public static function sum($num1, $num2)
{
return $num1 + $num2;
}
}
Expand All @@ -72,44 +164,44 @@ public static function sum( $num1, $num2 ) {

class ClassicWatchBuilder implements WatchBuilderInterface
{
private Watch $watch;

public function createWatch(): WatchBuilderInterface
{
$this->watch = new ClassicWatch();
return $this;
}

public function addBox(): WatchBuilderInterface
{
$this->watch->addComponent("Watch box", new Box());
return $this;
}

public function addHands(): WatchBuilderInterface
{
$this->watch->addComponent("Seconds hand", new Hand());
$this->watch->addComponent("Minutes hand", new Hand());
$this->watch->addComponent("Hours hand", new Hand());
return $this;
}

public function addBands(): WatchBuilderInterface
{
$this->watch->addComponent("Leather upper band", new Band());
$this->watch->addComponent("Leather lower band", new Band());
return $this;
}

public function addMovements(): WatchBuilderInterface
{
$this->watch->addComponent("Principal watch movement", new Movement());
$this->watch->addComponent("Date watch movement", new Movement());
return $this;
}

public function getWatch(): Watch
{
return $this->watch;
}
private Watch $watch;

public function createWatch(): WatchBuilderInterface
{
$this->watch = new ClassicWatch();
return $this;
}

public function addBox(): WatchBuilderInterface
{
$this->watch->addComponent("Watch box", new Box());
return $this;
}

public function addHands(): WatchBuilderInterface
{
$this->watch->addComponent("Seconds hand", new Hand());
$this->watch->addComponent("Minutes hand", new Hand());
$this->watch->addComponent("Hours hand", new Hand());
return $this;
}

public function addBands(): WatchBuilderInterface
{
$this->watch->addComponent("Leather upper band", new Band());
$this->watch->addComponent("Leather lower band", new Band());
return $this;
}

public function addMovements(): WatchBuilderInterface
{
$this->watch->addComponent("Principal watch movement", new Movement());
$this->watch->addComponent("Date watch movement", new Movement());
return $this;
}

public function getWatch(): Watch
{
return $this->watch;
}
}
16 changes: 16 additions & 0 deletions samples/.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,22 @@ export function activate(context: vscode.ExtensionContext) {
})(angular);


let age: number = 25;
let name: string = "John";
let isStudent: boolean = false;
let scores: number[] = [98, 76, 89];
let person: { name: string, age: number } = { name: "John", age: 25 };

// Properly annotating function parameter and return types
function greet(name: string): string {
return "Hello, " + name;
}

function add(a: number, b: number): number {
return a + b;
}


const options = {
method: 'GET',
uri: 'https://api.github.com/com/search/repositores',
Expand Down
Loading

0 comments on commit e8efbe7

Please sign in to comment.