Merge pull request #1360 from Camc314/cam/dev/control-flow

Adds control flow to theme colors
This commit is contained in:
Dongdong Zhou 2022-09-26 19:16:55 +01:00 committed by GitHub
commit ca46821de8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 9 additions and 7 deletions

View File

@ -81,6 +81,7 @@ magenta = "#C678DD"
"method" = "$blue"
"function.method" = "$blue"
"keyword" = "$purple"
"keyword.control" = "$purple"
"selfKeyword" = "$purple"
"field" = "$red"
"property" = "$red"

View File

@ -213,7 +213,6 @@
"debugger"
"delete"
"extends"
"from"
"function"
"get"
"in"
@ -239,7 +238,6 @@
[
"switch"
"case"
"default"
"if"
"else"
"yield"
@ -257,5 +255,7 @@
[
"import"
"default"
"from"
"export"
] @keyword.control.import

View File

@ -176,7 +176,6 @@
"debugger"
"delete"
"extends"
"from"
"function"
"get"
"in"
@ -202,7 +201,6 @@
[
"switch"
"case"
"default"
"if"
"else"
"yield"
@ -220,6 +218,8 @@
[
"import"
"default"
"from"
"export"
] @keyword.control.import

View File

@ -227,7 +227,6 @@
"debugger"
"delete"
"extends"
"from"
"function"
"get"
"in"
@ -253,7 +252,6 @@
[
"switch"
"case"
"default"
"if"
"else"
"yield"
@ -271,6 +269,8 @@
[
"import"
"default"
"from"
"export"
] @keyword.control.import

View File

@ -747,7 +747,7 @@ pub fn from_name(name: &str) -> Option<LapceLanguage> {
match LapceLanguage::from_str(name.to_lowercase().as_str()) {
Ok(v) => Some(v),
Err(e) => {
eprintln!("failed parsing LapceLanguage: {e}");
eprintln!("failed parsing {name} LapceLanguage: {e}");
None
}
}

View File

@ -14,6 +14,7 @@
"function",
"label",
"keyword",
"keyword.control",
"string",
"variable",
"variable.other.member",