mirror of https://github.com/lapce/lapce.git
fix: use correct python identation (#1666)
* Fix python identation bug caused by #1411 * Added entry to CHANGELOG.md * Update python indentation to pep8 and fix comment * Updated CHANGELOG.md to match
This commit is contained in:
parent
fd361abf6b
commit
9026987880
|
@ -12,6 +12,7 @@
|
|||
### Bug Fixes
|
||||
|
||||
- [#1588](https://github.com/lapce/lapce/issues/1588): Fixed an issue where new windows would never be created after closing all windows on macOS.
|
||||
- [#1637](https://github.com/lapce/lapce/issues/1637): Fix python using 7 spaces instead of 4 spaces to indent
|
||||
|
||||
## 0.2.2
|
||||
|
||||
|
|
|
@ -84,7 +84,7 @@ struct SyntaxProperties {
|
|||
injection: Option<&'static str>,
|
||||
/// The comment token. "#" for python, "//" for rust for example.
|
||||
comment: &'static str,
|
||||
/// The indent unit. "\t" for python, " " for rust, for example.
|
||||
/// The indent unit. " " for javascript, " " for rust, for example.
|
||||
indent: &'static str,
|
||||
/// TODO: someone more knowledgeable please describe what the two lists are.
|
||||
/// Anyway, the second element of the tuple is a "ignore list". See
|
||||
|
@ -676,7 +676,6 @@ pub enum LapceLanguage {
|
|||
indent: " ",
|
||||
code_lens: (DEFAULT_CODE_LENS_LIST, DEFAULT_CODE_LENS_IGNORE_LIST),
|
||||
sticky_headers: &["module", "class", "method", "do_block"],
|
||||
|
||||
extensions: &["rb"],
|
||||
},
|
||||
#[cfg(feature = "lang-rust")]
|
||||
|
|
Loading…
Reference in New Issue