mirror of https://github.com/lapce/lapce.git
add markup syntax color for markdown
This commit is contained in:
parent
cab5ddeac8
commit
36bebb6d15
|
@ -5,6 +5,7 @@
|
|||
### Features/Changes
|
||||
|
||||
### Bug Fixes
|
||||
- Fix markdown syntax highlighting
|
||||
|
||||
## 0.4.1
|
||||
|
||||
|
|
|
@ -68,6 +68,14 @@ dim-text = "#5C6370"
|
|||
"variable.other.member" = "$red"
|
||||
"tag" = "$blue"
|
||||
|
||||
"markup.heading" = "$red"
|
||||
"markup.bold" = "$orange"
|
||||
"markup.italic" = "$orange"
|
||||
"markup.list" = "$orange"
|
||||
"markup.link.url" = "$blue"
|
||||
"markup.link.label" = "$purple"
|
||||
"markup.link.text" = "$purple"
|
||||
|
||||
"bracket.color.1" = "$blue"
|
||||
"bracket.color.2" = "$yellow"
|
||||
"bracket.color.3" = "$purple"
|
||||
|
|
|
@ -74,6 +74,14 @@ dim-text = "#A0A1A7"
|
|||
"variable.other.member" = "$red"
|
||||
"tag" = "$blue"
|
||||
|
||||
"markup.heading" = "$red"
|
||||
"markup.bold" = "$orange"
|
||||
"markup.italic" = "$orange"
|
||||
"markup.list" = "$orange"
|
||||
"markup.link.url" = "$blue"
|
||||
"markup.link.label" = "$purple"
|
||||
"markup.link.text" = "$purple"
|
||||
|
||||
"bracket.color.1" = "$blue"
|
||||
"bracket.color.2" = "$yellow"
|
||||
"bracket.color.3" = "$purple"
|
||||
|
|
|
@ -1169,8 +1169,8 @@ pub enum LapceLanguage {
|
|||
extensions: &[],
|
||||
comment: comment_properties!(),
|
||||
tree_sitter: TreeSitterProperties {
|
||||
grammar: Some("markdown"),
|
||||
grammar_fn: None,
|
||||
grammar: Some("markdown_inline"),
|
||||
grammar_fn: Some("markdown_inline"),
|
||||
query: Some("markdown.inline"),
|
||||
code_glance: (DEFAULT_CODE_GLANCE_LIST, DEFAULT_CODE_GLANCE_IGNORE_LIST),
|
||||
sticky_headers: &[],
|
||||
|
|
|
@ -33,6 +33,14 @@
|
|||
"conceal",
|
||||
"none",
|
||||
"tag",
|
||||
"markup.bold",
|
||||
"markup.italic",
|
||||
"markup.list",
|
||||
"markup.quote",
|
||||
"markup.heading",
|
||||
"markup.link.url",
|
||||
"markup.link.label",
|
||||
"markup.link.text",
|
||||
];
|
||||
|
||||
pub fn line_styles(
|
||||
|
|
Loading…
Reference in New Issue