Skip to content

Commit eca966b

Browse files
committed
- css селекторы которые названы странно типа value-2
- старт тега и окончание тега выделить в отдельный тег
1 parent a3b3d39 commit eca966b

16 files changed

+44
-28
lines changed

css/larevel.css

+28-12
Original file line numberDiff line numberDiff line change
@@ -6,51 +6,63 @@ pre, code {
66
background-color: #0c0c0c;
77
}
88

9-
.hl-attribute{
9+
.hl-attribute {
1010
color: #FFCB6B;
1111
}
1212

13-
.hl-constant{
13+
.hl-constant {
1414
color: #82AAFF;
1515
}
1616

17-
.hl-function{
17+
.hl-function {
1818
color: #82AAFF;
1919
}
2020

21-
.hl-template{
21+
.hl-template {
2222
color: #A9C77D;
2323
}
2424

25-
.hl-slug{
25+
.hl-slug {
2626
color: #FF5874;
2727
}
2828

29-
.hl-delimeter{
29+
.hl-delimeter {
3030
color: #89DDFF;
3131
}
3232

33-
.hl-operator{
33+
.hl-operator {
3434
color: #C792EA;
3535
}
3636

37-
.hl-tag {
37+
.hl-start-end-tag {
38+
color: #89DDFF;
39+
}
40+
41+
.hl-system-tag {
3842
color: #D3423E;
3943
}
4044

41-
.hl-tag2{
45+
.hl-tag {
46+
color: #FF5572;
47+
}
48+
49+
.hl-this-keyword {
50+
color: #FF5572;
51+
}
52+
53+
.hl-doctype-keyword {
4254
color: #FF5572;
4355
}
4456

4557
.hl-keyword {
4658
color: #C792EA;
4759
}
4860

49-
.hl-property {
61+
.hl-argument {
5062
color: #82AAFF;
5163
}
5264

53-
.hl-property2{
65+
.hl-property {
5466
color: #89DDFF;
5567
}
5668

@@ -66,7 +78,11 @@ pre, code {
6678
color: #C3E88D;
6779
}
6880

69-
.hl-value2 {
81+
.hl-json-value {
82+
color: #80CBC4;
83+
}
84+
85+
.hl-location-value {
7086
color: #80CBC4;
7187
}
7288

src/Languages/JavaScript/Patterns/JsPropertyPattern.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@ public function getPattern(): string
2020

2121
public function getTokenType(): TokenType
2222
{
23-
return new DynamicTokenType('hl-property2');
23+
return new DynamicTokenType('hl-property');
2424
}
2525
}

src/Languages/Json/Injections/JsonArrayInjection.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ public function parseContent(string $content, Highlighter $highlighter): string
3232
foreach($match['match'] as $val) {
3333
$content = preg_replace(
3434
'/' . addcslashes($val[0], '/*') . '[\b]*/',
35-
Escape::tokens($theme->before(new DynamicTokenType('hl-value2')))
35+
Escape::tokens($theme->before(new DynamicTokenType('hl-json-value')))
3636
. $val[0]
37-
. Escape::tokens($theme->after(new DynamicTokenType('hl-value2'))),
37+
. Escape::tokens($theme->after(new DynamicTokenType('hl-json-value'))),
3838
$content,
3939
);
4040
}

src/Languages/Json/Patterns/JsonDoubleQuoteValuePattern.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@ public function getPattern(): string
2020

2121
public function getTokenType(): TokenType
2222
{
23-
return new CanNotContainTokenType('hl-value2');
23+
return new CanNotContainTokenType('hl-json-value');
2424
}
2525
}

src/Languages/Nginx/Patterns/NginxLocationPathPattern.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@ public function getPattern(): string
2020

2121
public function getTokenType(): TokenType
2222
{
23-
return new DynamicTokenType('hl-value2');
23+
return new DynamicTokenType('hl-location-value');
2424
}
2525
}

src/Languages/Php/Patterns/PhpCloseTagPattern.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@ public function getPattern(): string
2020

2121
public function getTokenType(): TokenType
2222
{
23-
return new DynamicTokenType('hl-tag');
23+
return new DynamicTokenType('hl-system-tag');
2424
}
2525
}

src/Languages/Php/Patterns/PhpEnumCasePattern.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@ public function getPattern(): string
2020

2121
public function getTokenType(): TokenType
2222
{
23-
return new DynamicTokenType('hl-property');
23+
return new DynamicTokenType('hl-argument');
2424
}
2525
}

src/Languages/Php/Patterns/PhpNamedArgumentPattern.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@ public function getPattern(): string
2020

2121
public function getTokenType(): TokenType
2222
{
23-
return new DynamicTokenType('hl-property');
23+
return new DynamicTokenType('hl-argument');
2424
}
2525
}

src/Languages/Php/Patterns/PhpOpenTagPattern.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@ public function getPattern(): string
2020

2121
public function getTokenType(): TokenType
2222
{
23-
return new DynamicTokenType('hl-tag');
23+
return new DynamicTokenType('hl-system-tag');
2424
}
2525
}

src/Languages/Php/PhpLanguage.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public function getPatterns(): array
7777
// KEYWORDS
7878
new KeywordPattern($keywords),
7979
new KeywordPattern('(null|true|false|instanceof|echo|new)', 'hl-constant'),
80-
new GenericPattern('/(?<match>\$this)(\-|\$|\,|\)|\;|\:|\s|\(|\])/', 'hl-tag2'),
80+
new GenericPattern('/(?<match>\$this)(\-|\$|\,|\)|\;|\:|\s|\(|\])/', 'hl-this-keyword'),
8181
new GenericPattern('/\->\b(?<match>[\w]+?)\b(?!\()/', 'hl-delimeter'),
8282
new GenericPattern('/(?<match>\+\+)/', 'hl-constant'),
8383
new GenericPattern('/\((?<match>(string))\)/', 'hl-keyword'),

src/Languages/Xml/Patterns/XmlCloseTagPattern.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@ public function getPattern(): string
2020

2121
public function getTokenType(): TokenType
2222
{
23-
return new DynamicTokenType('hl-tag2');
23+
return new DynamicTokenType('hl-tag');
2424
}
2525
}

src/Languages/Xml/Patterns/XmlDoctypePattern.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@ public function getPattern(): string
2020

2121
public function getTokenType(): TokenType
2222
{
23-
return new DynamicTokenType('hl-tag2');
23+
return new DynamicTokenType('hl-doctype-keyword');
2424
}
2525
}

src/Languages/Xml/Patterns/XmlEndCloseTagPattern.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@ public function getPattern(): string
2020

2121
public function getTokenType(): TokenType
2222
{
23-
return new DynamicTokenType('hl-delimeter');
23+
return new DynamicTokenType('hl-start-end-tag');
2424
}
2525
}

src/Languages/Xml/Patterns/XmlOpenTagPattern.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@ public function getPattern(): string
2020

2121
public function getTokenType(): TokenType
2222
{
23-
return new DynamicTokenType('hl-tag2');
23+
return new DynamicTokenType('hl-tag');
2424
}
2525
}

src/Languages/Xml/Patterns/XmlStartOpenTagPattern.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@ public function getPattern(): string
2020

2121
public function getTokenType(): TokenType
2222
{
23-
return new DynamicTokenType('hl-delimeter');
23+
return new DynamicTokenType('hl-start-end-tag');
2424
}
2525
}

src/Languages/Yaml/Patterns/YamlPropertyPattern.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@ public function getPattern(): string
2020

2121
public function getTokenType(): TokenType
2222
{
23-
return new DynamicTokenType('hl-property2');
23+
return new DynamicTokenType('hl-property');
2424
}
2525
}

0 commit comments

Comments
 (0)