Improve unusable slowness of tree sitter syntax highlighting (#229951)

* Improve unusable slowness of tree sitter syntax highlighting
Part of #229935

* Improve improvement as discussed with Martin

* Fix score

* Fix test error
This commit is contained in:
Alex Ross
2024-09-30 15:18:32 +02:00
committed by GitHub
parent a0991154fa
commit ef44e67783
9 changed files with 55 additions and 86 deletions
@@ -1989,7 +1989,7 @@
},
{
"c": "=>",
"t": "keyword.operator storage.type",
"t": "storage.type",
"r": {
"dark_plus": "storage.type: #569CD6",
"light_plus": "storage.type: #0000FF",
@@ -2507,7 +2507,7 @@
},
{
"c": "=>",
"t": "keyword.operator storage.type",
"t": "storage.type",
"r": {
"dark_plus": "storage.type: #569CD6",
"light_plus": "storage.type: #0000FF",
@@ -2801,16 +2801,16 @@
},
{
"c": "t",
"t": "variable variable.other.constant",
"t": "variable",
"r": {
"dark_plus": "variable.other.constant: #4FC1FF",
"light_plus": "variable.other.constant: #0070C1",
"dark_plus": "variable: #9CDCFE",
"light_plus": "variable: #001080",
"dark_vs": "default: #D4D4D4",
"light_vs": "default: #000000",
"hc_black": "variable: #9CDCFE",
"dark_modern": "variable.other.constant: #4FC1FF",
"hc_light": "variable.other.constant: #02715D",
"light_modern": "variable.other.constant: #0070C1"
"dark_modern": "variable: #9CDCFE",
"hc_light": "variable: #001080",
"light_modern": "variable: #001080"
}
},
{
@@ -155,16 +155,16 @@
},
{
"c": "timeRange",
"t": "variable variable.other.constant",
"t": "variable",
"r": {
"dark_plus": "variable.other.constant: #4FC1FF",
"light_plus": "variable.other.constant: #0070C1",
"dark_plus": "variable: #9CDCFE",
"light_plus": "variable: #001080",
"dark_vs": "default: #D4D4D4",
"light_vs": "default: #000000",
"hc_black": "variable: #9CDCFE",
"dark_modern": "variable.other.constant: #4FC1FF",
"hc_light": "variable.other.constant: #02715D",
"light_modern": "variable.other.constant: #0070C1"
"dark_modern": "variable: #9CDCFE",
"hc_light": "variable: #001080",
"light_modern": "variable: #001080"
}
},
{
@@ -85,16 +85,16 @@
},
{
"c": "foo",
"t": "variable entity.name.function variable.other.constant",
"t": "variable entity.name.function",
"r": {
"dark_plus": "variable.other.constant: #4FC1FF",
"light_plus": "variable.other.constant: #0070C1",
"dark_plus": "entity.name.function: #DCDCAA",
"light_plus": "entity.name.function: #795E26",
"dark_vs": "default: #D4D4D4",
"light_vs": "default: #000000",
"hc_black": "variable: #9CDCFE",
"dark_modern": "variable.other.constant: #4FC1FF",
"hc_light": "variable.other.constant: #02715D",
"light_modern": "variable.other.constant: #0070C1"
"hc_black": "entity.name.function: #DCDCAA",
"dark_modern": "entity.name.function: #DCDCAA",
"hc_light": "entity.name.function: #5E2CBC",
"light_modern": "entity.name.function: #795E26"
}
},
{
@@ -169,7 +169,7 @@
},
{
"c": "=>",
"t": "keyword.operator storage.type",
"t": "storage.type",
"r": {
"dark_plus": "storage.type: #569CD6",
"light_plus": "storage.type: #0000FF",
@@ -85,7 +85,7 @@
},
{
"c": "=>",
"t": "keyword.operator storage.type",
"t": "storage.type",
"r": {
"dark_plus": "storage.type: #569CD6",
"light_plus": "storage.type: #0000FF",
@@ -323,7 +323,7 @@
},
{
"c": "constructor",
"t": "variable meta.definition.method entity.name.function storage.type",
"t": "variable meta.definition.method storage.type",
"r": {
"dark_plus": "storage.type: #569CD6",
"light_plus": "storage.type: #0000FF",
@@ -1457,7 +1457,7 @@
},
{
"c": "constructor",
"t": "variable meta.definition.method entity.name.function storage.type",
"t": "variable meta.definition.method storage.type",
"r": {
"dark_plus": "storage.type: #569CD6",
"light_plus": "storage.type: #0000FF",
@@ -2717,7 +2717,7 @@
},
{
"c": "=>",
"t": "keyword.operator storage.type",
"t": "storage.type",
"r": {
"dark_plus": "storage.type: #569CD6",
"light_plus": "storage.type: #0000FF",
@@ -3319,7 +3319,7 @@
},
{
"c": "=>",
"t": "keyword.operator storage.type",
"t": "storage.type",
"r": {
"dark_plus": "storage.type: #569CD6",
"light_plus": "storage.type: #0000FF",
@@ -3879,7 +3879,7 @@
},
{
"c": "=>",
"t": "keyword.operator storage.type",
"t": "storage.type",
"r": {
"dark_plus": "storage.type: #569CD6",
"light_plus": "storage.type: #0000FF",